Class: CfFactory::CfCloudFormationCommand
- Inherits:
-
Object
- Object
- CfFactory::CfCloudFormationCommand
show all
- Includes:
- CfInner
- Defined in:
- lib/cf_factory/cloudformation/cf_cloudformation_command.rb
Instance Method Summary
collapse
Methods included from CfInner
#generate, #generate_name, #hash_to_string, #set_quotes
Constructor Details
Returns a new instance of CfCloudFormationCommand.
13
14
15
16
17
18
19
20
21
22
|
# File 'lib/cf_factory/cloudformation/cf_cloudformation_command.rb', line 13
def initialize(name, command, options = {})
@name = name
@command = command
@env = options[:env]
@cwd = options[:cwd]
@test = options[:test]
@ignore_errors = options[:ignore_errors]
@additional_indent = 6
end
|
Instance Method Details
#additional_indent ⇒ Object
24
25
26
|
# File 'lib/cf_factory/cloudformation/cf_cloudformation_command.rb', line 24
def additional_indent
@additional_indent += 2
end
|
#get_cf_attributes ⇒ Object
28
29
30
31
32
33
34
35
36
|
# File 'lib/cf_factory/cloudformation/cf_cloudformation_command.rb', line 28
def get_cf_attributes
result = {}
result['command'] = @command
result['env'] = @env unless @env.nil?
result['cwd'] = @cwd unless @cwd.nil?
result['test'] = @test unless @test.nil?
result['ignoreErrors'] = @ignore_errors unless @ignore_errors.nil?
result
end
|
#get_name ⇒ Object
9
10
11
|
# File 'lib/cf_factory/cloudformation/cf_cloudformation_command.rb', line 9
def get_name
@name
end
|