Class: Noveku::CLI::Heroku

Inherits:
Base
  • Object
show all
Defined in:
lib/noveku/cli/heroku.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#commands, #noveku

Instance Method Summary collapse

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

#environmentObject (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