lib/pivotal-github/command.rb in pivotal-github-0.6.12 vs lib/pivotal-github/command.rb in pivotal-github-0.6.14
- old
+ new
@@ -27,13 +27,13 @@
def story_id
story_branch.scan(/\d+/).first
end
- # Runs a command
+ # Runs a command.
# If the argument array contains '--debug', returns the command that would
- # have been run
+ # have been run.
def self.run!(command_class, args)
debug = args.delete('--debug')
command = command_class.new(args)
if debug
puts command.cmd
@@ -44,10 +44,10 @@
end
end
private
- # Returns an argument string based on given arguments
+ # Returns an argument string based on given arguments.
# The main trick is to add in quotes for option
# arguments when necessary.
# For example, ['-a', '-m', 'foo bar'] becomes
# '-a -m "foo bar"'
def argument_string(args)
\ No newline at end of file