Class: Hookers::Commands::Pivotal
- Inherits:
-
Object
- Object
- Hookers::Commands::Pivotal
- Includes:
- Hookers::Command
- Defined in:
- lib/hookers/commands/pivotal.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(command, args) ⇒ Pivotal
constructor
A new instance of Pivotal.
- #run ⇒ Object
Methods included from Hookers::Command
Constructor Details
#initialize(command, args) ⇒ Pivotal
Returns a new instance of Pivotal.
16 17 18 |
# File 'lib/hookers/commands/pivotal.rb', line 16 def initialize(command, args) self. = (args) end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
8 9 10 |
# File 'lib/hookers/commands/pivotal.rb', line 8 def end |
Class Method Details
.slop ⇒ Object
10 11 12 13 14 |
# File 'lib/hookers/commands/pivotal.rb', line 10 def self.slop Slop.new(help: true) do on :"api-token", "Pivotal user token to sync commits", argument: true end end |
Instance Method Details
#run ⇒ Object
20 21 22 |
# File 'lib/hookers/commands/pivotal.rb', line 20 def run puts Hookers::Pivotal::TrackerProject.new([:"api-token"]).notify_changes end |