Class: GithubControl::Action
- Inherits:
-
Object
- Object
- GithubControl::Action
show all
- Defined in:
- lib/github-control/action.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Constructor Details
#initialize(cli) ⇒ Action
Returns a new instance of Action.
11
12
13
|
# File 'lib/github-control/action.rb', line 11
def initialize(cli)
@cli = cli
end
|
Class Method Details
.register(name) ⇒ Object
3
4
5
|
# File 'lib/github-control/action.rb', line 3
def self.register(name)
Action.set[name.to_s] = self
end
|
.set ⇒ Object
7
8
9
|
# File 'lib/github-control/action.rb', line 7
def self.set
@set ||= {}
end
|
Instance Method Details
#add_options(parser) ⇒ Object
19
20
21
|
# File 'lib/github-control/action.rb', line 19
def add_options(parser)
raise NotImplementedError, "Please implement the #{self.class}#add_options method"
end
|
#call ⇒ Object
23
24
25
|
# File 'lib/github-control/action.rb', line 23
def call
raise NotImplementedError, "Please implement the #{self.class}#call method"
end
|
#options ⇒ Object
15
16
17
|
# File 'lib/github-control/action.rb', line 15
def options
@options ||= {}
end
|