Commit 7d301aa

mo khan <mo@mokhan.ca>
2015-05-22 21:40:11
generalize the items that are added to .env.
1 parent 9472eb6
Changed files (2)
attributes
recipes
attributes/default.rb
@@ -2,44 +2,8 @@ default['user']['username'] = 'rails'
 default['capistrano']['root_path'] = '/var/www/app'
 default['capistrano']['username'] = node['user']['username']
 default['capistrano']['env'] = {
-  aws: {
-    access_key: '',
-    secret_access_key: '',
-    product_key: '',
-    associate_id: '',
-    s3_backup_bucket: '',
-    s3_bucket: '',
-  },
   asset_host: '',
-  smtp: {
-    host: '',
-    port: '',
-    domain: '',
-    username: '',
-    password: '',
-  },
-  mix_panel_api_key: '',
-  secret_token: '',
-  google_analytics: '',
-  embedly_key: '',
-  facebook_app_id: '',
-  disqus: {
-    api_key: '',
-    secret_key: '',
-    short_name: '',
-  },
-  exception_email_address: '',
-  mailchimp: {
-    api_key: '',
-    list_id: '',
-  },
-  twitter: {
-    consumer_key: '',
-    consumer_secret: '',
-    access_token: '',
-    access_secret: '',
-  },
-  newrelic_key: '',
+  secret_token: ''
 }
 default['delayed_job']['username'] = node['user']['username']
 default['delayed_job']['current_path'] = "#{node['capistrano']['root_path']}/current"
@@ -51,7 +15,7 @@ default['unicorn']['username'] = node['user']['username']
 default['unicorn']['current_path'] = "#{node['capistrano']['root_path']}/current"
 default['unicorn']['rails_env'] = node.chef_environment
 default['monit']['application'] = 'app'
-default['rbenv']['ruby_version'] = '2.2.0'
+default['rbenv']['ruby_version'] = '2.2.2'
 default['aws']['username'] = node['user']['username']
 default['aws']['profiles']['default']['region'] = 'us-east-1'
 default['aws']['profiles']['default']['aws_access_key_id'] = 'secret'
recipes/capistrano.rb
@@ -31,5 +31,5 @@ template "#{shared_path}/.env" do
   owner configuration['username']
   group configuration['username']
   mode "0600"
-  variables(configuration['env'])
+  variables(configuration)
 end