Skip to content

Commit

Permalink
move remaining provision file generation to elzar
Browse files Browse the repository at this point in the history
  • Loading branch information
cldwalker authored and Gabriel Horner and Lake Denman committed May 7, 2012
1 parent 2dc0862 commit d623ef1
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions lib/generators/provision_config/provision_config_generator.rb
Expand Up @@ -54,23 +54,6 @@ def create_provision_directory
:authorized_keys => @authorized_keys, :app_name => name
end

# TODO: move next two methods to elzar
def create_authorized_key_data_bag
content = {
"id" => "authorized_keys",
"keys" => @authorized_keys,
}
create_file('provision/data_bags/deploy/authorized_keys.json', JSON.generate(content), {:force => true})
end

def create_dna_json
path = File.expand_path('provision/dna.json', destination_root)
content = JSON.parse(File.binread(path))
content['rails_app']['name'] = name
RelevanceRails::ChefDNA.gene_splice(content, database)
create_file('provision/dna.json', JSON.generate(content), {:force => true})
end

def create_rvmrc
if File.exists?(rvmrc = Rails.root.join('.rvmrc'))
create_file('provision/.rvmrc', File.read(rvmrc), :force => true)
Expand Down

0 comments on commit d623ef1

Please sign in to comment.