Class: GithubControl::Actions::Shell

Inherits:
GithubControl::Action show all
Defined in:
lib/github-control/actions/shell.rb

Instance Method Summary collapse

Methods inherited from GithubControl::Action

#initialize, #options, register, set

Constructor Details

This class inherits a constructor from GithubControl::Action

Instance Method Details

#add_options(parser) ⇒ Object



8
9
# File 'lib/github-control/actions/shell.rb', line 8

def add_options(parser)
end

#callObject



11
12
13
14
15
16
# File 'lib/github-control/actions/shell.rb', line 11

def call
  console = @cli.console
  puts "You are now able to interact with Github via the 'github' method"
  Object.send(:define_method, :github) { console }
  IRB.start
end