-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ps:scale to Cli, readme #17
base: master
Are you sure you want to change the base?
Conversation
Thanks for making this, super clean. Adding a command took only a few minutes because of the solid setup. |
desc "ps:scale PROC1=SCALE1 [PROC2=SCALE2 ...]", "Scale one or more Procfile processes" | ||
def ps_scale(*args) | ||
|
||
args = args.map{|arg| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make this a block and use map!
(Which also gets rid of the assignment) .
args.map! do |arg|
...
end
Thanks for your contribution! <3 |
@@ -10,6 +10,30 @@ def ps | |||
run_command "ps #{app_name}" | |||
end | |||
|
|||
desc "ps:scale PROC1=SCALE1 [PROC2=SCALE2 ...]", "Scale one or more Procfile processes" | |||
def ps_scale(*args) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please 🔥 the new line here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your branch is not working for me locally. Could you make sure that your new command is mapped here.
Could you also please confirm that your changes are working for you locally? You can test it by:
- Uninstalling the current gem version -
gem uninstall dokku-cli
- Building the local gem file -
gem build dokku-cli.gemspec
- Installing the generated gem -
gem install dokku-cli-*.gem
Thanks! ❤️
No description provided.