zzdeploy 0.1.0 → 0.1.2
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.
- data/lib/commands/chef_upload.rb +1 -1
- data/lib/commands/config_amazon.rb +2 -2
- data/lib/info.rb +1 -1
- metadata +4 -4
data/lib/commands/chef_upload.rb
CHANGED
@@ -56,7 +56,7 @@ module Commands
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def self.get_upload_command(recipes_deploy_tag)
|
59
|
-
"cd #{::ZZDeploy::RECIPES_DIR} && git fetch && git checkout -f #{recipes_deploy_tag} &&
|
59
|
+
"cd #{::ZZDeploy::RECIPES_DIR} && git fetch && git checkout -f #{recipes_deploy_tag} && bundle install --path #{::ZZDeploy::RECIPES_BUNDLE_DIR} --deployment"
|
60
60
|
end
|
61
61
|
end
|
62
62
|
end
|
@@ -43,18 +43,18 @@ module Commands
|
|
43
43
|
}
|
44
44
|
|
45
45
|
# make sure the chef dir exists
|
46
|
+
chef_dir = "/var/chef"
|
46
47
|
`sudo mkdir -p #{chef_dir}`
|
47
48
|
|
48
49
|
# generate the json into a temp file
|
49
50
|
json = JSON.pretty_generate(info)
|
50
|
-
chef_dir = "/var/chef"
|
51
51
|
amazon_path = "#{chef_dir}/amazon.json"
|
52
52
|
temp_path = File.expand_path('.', "~/amazon_temp.json")
|
53
53
|
File.open(temp_path, 'w') {|f| f.write(json) }
|
54
54
|
|
55
55
|
# now move the file and set permissions
|
56
56
|
`sudo cp #{temp_path} #{amazon_path}`
|
57
|
-
cmd = "sudo chown `whoami
|
57
|
+
cmd = "sudo chown `whoami` #{amazon_path} && sudo chmod 0644 #{amazon_path}"
|
58
58
|
`#{cmd}`
|
59
59
|
# remove the temp file
|
60
60
|
`rm -f #{temp_path}`
|
data/lib/info.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zzdeploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Greg Seitz
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-08-
|
18
|
+
date: 2011-08-10 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|