provisionator 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/provisionator/ec2_userdata.rb +2 -1
- data/lib/provisionator/version.rb +1 -1
- metadata +3 -3
@@ -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
|
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
|
|
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.
|
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: -
|
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: -
|
108
|
+
hash: -1763079988935438399
|
109
109
|
requirements: []
|
110
110
|
rubyforge_project:
|
111
111
|
rubygems_version: 1.8.23
|