Class: Diffhub::Cli

Inherits:
Object
  • Object
show all
Defined in:
lib/diffhub/cli.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args = []) ⇒ Cli

Returns a new instance of Cli.



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

def initialize(args=[])
  @args = args
  @github = GitHub.new
end

Instance Attribute Details

#args ⇒ Object (readonly)

Returns the value of attribute args.



3
4
5
# File 'lib/diffhub/cli.rb', line 3

def args
  @args
end

#github ⇒ Object (readonly)

Returns the value of attribute github.



3
4
5
# File 'lib/diffhub/cli.rb', line 3

def github
  @github
end

Instance Method Details

#execute! ⇒ Object



10
11
12
# File 'lib/diffhub/cli.rb', line 10

def execute!
  github.upload_diff!
end