Class: Noveku::CLI::Heroku
Instance Attribute Summary collapse
-
#environment ⇒ Object
readonly
Returns the value of attribute environment.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(*commands) ⇒ Heroku
constructor
Extract environment from commands.
-
#template_command(command) ⇒ Object
Template for commands.
Methods inherited from Base
#call, #command, #dry_run?, #hide_both?, #hide_stderr?, #hide_stdout?, #print, #template_command_with_output_cleaned, #verbose?
Constructor Details
#initialize(*commands) ⇒ Heroku
Extract environment from commands
9 10 11 12 |
# File 'lib/noveku/cli/heroku.rb', line 9 def initialize(*commands) super @environment = @commands.shift end |
Instance Attribute Details
#environment ⇒ Object (readonly)
Returns the value of attribute environment.
6 7 8 |
# File 'lib/noveku/cli/heroku.rb', line 6 def environment @environment end |
Instance Method Details
#template_command(command) ⇒ Object
Template for commands
15 16 17 |
# File 'lib/noveku/cli/heroku.rb', line 15 def template_command(command) "heroku #{command} --remote '#{noveku.remote}'" end |