Class: Fig::Package::Command
- Inherits:
-
Object
- Object
- Fig::Package::Command
- Includes:
- Statement
- Defined in:
- lib/fig/package/command.rb
Overview
Specifies a default command that will be executed for a given Configuration if no command is specified on the command-line.
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
Instance Method Summary collapse
-
#initialize(command) ⇒ Command
constructor
A new instance of Command.
- #unparse(indent) ⇒ Object
Methods included from Statement
Constructor Details
#initialize(command) ⇒ Command
Returns a new instance of Command.
15 16 17 |
# File 'lib/fig/package/command.rb', line 15 def initialize(command) @command = command end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
13 14 15 |
# File 'lib/fig/package/command.rb', line 13 def command @command end |
Instance Method Details
#unparse(indent) ⇒ Object
19 20 21 |
# File 'lib/fig/package/command.rb', line 19 def unparse(indent) %Q<#{indent}command "#{@command}"> end |