Class: Piston::Commands::Info
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
Methods inherited from Base
#force, #guess_wc, #initialize, logger, #logger, #quiet, #verbose, #working_copy!
Constructor Details
This class inherits a constructor from Piston::Commands::Base
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/piston/commands/info.rb', line 6 def @options end |
Instance Method Details
#run(wcdir) ⇒ Object
8 9 10 11 |
# File 'lib/piston/commands/info.rb', line 8 def run(wcdir) working_copy = working_copy!(wcdir) working_copy.info.to_yaml end |