Class: BranchIOCLI::Command::Command

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

Direct Known Subclasses

ReportCommand, SetupCommand, ValidateCommand

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Command

Returns a new instance of Command.



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

def initialize(options)
  @options = options
end

Instance Attribute Details

#configObject (readonly)

command-specific configuration object



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

def config
  @config
end

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end

Instance Method Details

#helperObject



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

def helper
  Helper::BranchHelper
end

#patch_helperObject



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

def patch_helper
  Helper::PatchHelper
end

#run!Object



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

def run!
  # implemented by subclasses
end