Skip to content

Commit

Permalink
Merge pull request #25 from simplymeasured/add-rackspace
Browse files Browse the repository at this point in the history
add rackspace support
  • Loading branch information
fnichol committed Jul 22, 2013
2 parents 1ac0f00 + 7e4d973 commit e00a8bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/kitchen/vagrant/vagrantfile_creator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def provider_block(arr)
virtualbox_customize(arr)
when 'vmware_fusion', 'vmware_workstation'
vmware_customize(arr)
when 'rackspace'
rackspace_customize(arr)
end
arr << %{ end}
end
Expand Down Expand Up @@ -151,6 +153,12 @@ def vmware_customize(arr)
end
end

def rackspace_customize(arr)
config[:customize].each do |key, value|
arr << %{ p.#{key} = "#{value}"}
end
end

def key_path
return nil if instance.suite.encrypted_data_bag_secret_key_path.nil?

Expand Down

0 comments on commit e00a8bd

Please sign in to comment.