class Hookers::Commands::Pivotal
Attributes
options[RW]
Public Class Methods
new(command, args)
click to toggle source
# File lib/hookers/commands/pivotal.rb, line 16 def initialize(command, args) self.options = parse_options(args) end
slop()
click to toggle source
# 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
Public Instance Methods
run()
click to toggle source
# File lib/hookers/commands/pivotal.rb, line 20 def run puts Hookers::Pivotal::TrackerProject.new(options[:"api-token"]).notify_changes end