provisionator 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,7 @@ module Provisionator
12
12
  options[:chef_node_definition_file] ||= "/home/ubuntu/.#{options[:app_name]}/provision/chef/#{options[:chef_node_definition]}.json"
13
13
  options[:ruby_patch] ||= 'p195'
14
14
  options[:ebs_mount_paths] = ebs_mount_paths(options[:ebs_volumes]) if options[:ebs_volumes]
15
+ options[:rails_env] ||= 'production'
15
16
  @options = options
16
17
  end
17
18
 
@@ -100,7 +101,7 @@ su ubuntu -c 'git clone <%= @options[:chef_repo] %> /home/ubuntu/.chef'
100
101
  su ubuntu -c 'git clone <%= @options[:config_repo] %> /home/ubuntu/.config'
101
102
  su ubuntu -c 'git clone <%= @options[:app_repo] %> /home/ubuntu/.<%= @options[:app_name] %>'
102
103
 
103
- ln -s /home/ubuntu/.config/s3search/production/app.sh /etc/profile.d/$APP_NAME.sh
104
+ ln -s /home/ubuntu/.config/$APP_NAME/<%= @options[:rails_env] %>/app.sh /etc/profile.d/$APP_NAME.sh
104
105
 
105
106
  . /etc/profile.d/$APP_NAME.sh
106
107
 
@@ -1,3 +1,3 @@
1
1
  module Provisionator
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: provisionator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -96,7 +96,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
96
96
  version: '0'
97
97
  segments:
98
98
  - 0
99
- hash: -1752688427072281454
99
+ hash: -1763079988935438399
100
100
  required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  none: false
102
102
  requirements:
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  segments:
107
107
  - 0
108
- hash: -1752688427072281454
108
+ hash: -1763079988935438399
109
109
  requirements: []
110
110
  rubyforge_project:
111
111
  rubygems_version: 1.8.23