Skip to content
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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

thewebguy
Copy link

No description provided.

@thewebguy
Copy link
Author

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|
Copy link
Owner

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

@SebastianSzturo
Copy link
Owner

Thanks for your contribution! <3
Just one ruby style comment, otherwise looks great! I will test it at home and release a new version with your changes tonight.

@@ -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)

Copy link
Owner

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.

Copy link
Owner

@SebastianSzturo SebastianSzturo left a 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! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants