Class: BranchIOCLI::Commands::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/branch_io_cli/commands/command.rb

Direct Known Subclasses

SetupCommand, ValidateCommand

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Command

Returns a new instance of Command.



6
7
8
# File 'lib/branch_io_cli/commands/command.rb', line 6

def initialize(options)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/branch_io_cli/commands/command.rb', line 4

def options
  @options
end

Instance Method Details

#config_helperObject



18
19
20
# File 'lib/branch_io_cli/commands/command.rb', line 18

def config_helper
  Helper::ConfigurationHelper
end

#helperObject



14
15
16
# File 'lib/branch_io_cli/commands/command.rb', line 14

def helper
  Helper::BranchHelper
end

#run!Object



10
11
12
# File 'lib/branch_io_cli/commands/command.rb', line 10

def run!
  # implemented by subclasses
end