Class: OctoMerge::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/octo_merge/cli.rb,
lib/octo_merge/cli/parser.rb

Defined Under Namespace

Classes: Parser

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ CLI

Returns a new instance of CLI.



11
12
13
# File 'lib/octo_merge/cli.rb', line 11

def initialize(args)
  @args = args
end

Instance Attribute Details

#argsObject (readonly)

Returns the value of attribute args.



5
6
7
# File 'lib/octo_merge/cli.rb', line 5

def args
  @args
end

Class Method Details

.run(*args) ⇒ Object



7
8
9
# File 'lib/octo_merge/cli.rb', line 7

def self.run(*args)
  new(*args).run
end

Instance Method Details

#runObject



15
16
17
18
# File 'lib/octo_merge/cli.rb', line 15

def run
  configure
  execute
end