Class: Fig::Package::Command

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Statement

#urls, #walk_statements

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

#commandObject (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