simple_deploy 0.0.3 → 0.1.0
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/simple_deploy/artifact.rb +5 -2
- data/lib/simple_deploy/cli.rb +3 -5
- data/lib/simple_deploy/config.rb +4 -0
- data/lib/simple_deploy/deployment.rb +8 -6
- data/lib/simple_deploy/version.rb +1 -1
- data/simple_deploy.gemspec +2 -2
- metadata +16 -17
- data/lib/simple_deploy/artifact/artifact_lister.rb +0 -18
@@ -1,5 +1,4 @@
|
|
1
1
|
require 'heirloom'
|
2
|
-
require 'simple_deploy/artifact/artifact_lister'
|
3
2
|
|
4
3
|
module SimpleDeploy
|
5
4
|
class Artifact
|
@@ -8,7 +7,11 @@ module SimpleDeploy
|
|
8
7
|
|
9
8
|
def initialize(args)
|
10
9
|
@region = args[:region]
|
11
|
-
|
10
|
+
@config = args[:config]
|
11
|
+
@artifact = Heirloom::Artifact.new :config => @config.artifact_repository
|
12
|
+
|
13
|
+
self.metadata = @artifact.show :name => args[:name],
|
14
|
+
:id => args[:id]
|
12
15
|
end
|
13
16
|
|
14
17
|
def all_endpoints
|
data/lib/simple_deploy/cli.rb
CHANGED
@@ -40,8 +40,9 @@ EOS
|
|
40
40
|
|
41
41
|
read_attributes
|
42
42
|
|
43
|
-
unless @cmd == '
|
44
|
-
@config = Config.new.environment
|
43
|
+
unless @cmd == 'environments'
|
44
|
+
@config = Config.new.environment @opts[:environment]
|
45
|
+
|
45
46
|
unless environment_provided?
|
46
47
|
puts "Please specify an environment."
|
47
48
|
exit 1
|
@@ -60,9 +61,6 @@ EOS
|
|
60
61
|
case @cmd
|
61
62
|
when 'attributes'
|
62
63
|
@stack.attributes.each_pair { |k, v| puts "#{k}: #{v}" }
|
63
|
-
when 'artifacts'
|
64
|
-
a = ArtifactLister.new
|
65
|
-
puts a.summary
|
66
64
|
when 'create'
|
67
65
|
@stack.create :attributes => attributes,
|
68
66
|
:template => @opts[:template]
|
data/lib/simple_deploy/config.rb
CHANGED
@@ -23,9 +23,9 @@ module SimpleDeploy
|
|
23
23
|
private
|
24
24
|
|
25
25
|
def set_deploy_command
|
26
|
-
cmd = ""
|
26
|
+
cmd = get_artifact_endpoints.any? ? "env " : ""
|
27
27
|
get_artifact_endpoints.each_pair do |k,v|
|
28
|
-
cmd += "
|
28
|
+
cmd += "#{k}=#{v} "
|
29
29
|
end
|
30
30
|
cmd += @deploy_script
|
31
31
|
|
@@ -39,10 +39,12 @@ module SimpleDeploy
|
|
39
39
|
@config.artifacts.each do |a|
|
40
40
|
name = a['name']
|
41
41
|
endpoint = a['endpoint']
|
42
|
-
|
43
|
-
|
44
|
-
:
|
45
|
-
|
42
|
+
variable = a['variable']
|
43
|
+
artifact = Artifact.new :name => name,
|
44
|
+
:id => @attributes[name],
|
45
|
+
:region => @region,
|
46
|
+
:config => @config
|
47
|
+
h[variable] = artifact.all_endpoints[endpoint]
|
46
48
|
end
|
47
49
|
h
|
48
50
|
end
|
data/simple_deploy.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |s|
|
|
21
21
|
s.add_development_dependency "rspec"
|
22
22
|
|
23
23
|
s.add_runtime_dependency "capistrano"
|
24
|
-
s.add_runtime_dependency "heirloom", '= 0.0.
|
25
|
-
s.add_runtime_dependency "stackster", '= 0.0.
|
24
|
+
s.add_runtime_dependency "heirloom", '= 0.0.9'
|
25
|
+
s.add_runtime_dependency "stackster", '= 0.0.5'
|
26
26
|
s.add_runtime_dependency "trollop"
|
27
27
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple_deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &70196644202100 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70196644202100
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: capistrano
|
27
|
-
requirement: &
|
27
|
+
requirement: &70196644201500 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,32 +32,32 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70196644201500
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: heirloom
|
38
|
-
requirement: &
|
38
|
+
requirement: &70196644200800 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - =
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.0.
|
43
|
+
version: 0.0.9
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70196644200800
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: stackster
|
49
|
-
requirement: &
|
49
|
+
requirement: &70196644200040 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - =
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.0.
|
54
|
+
version: 0.0.5
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70196644200040
|
58
58
|
- !ruby/object:Gem::Dependency
|
59
59
|
name: trollop
|
60
|
-
requirement: &
|
60
|
+
requirement: &70196644199620 !ruby/object:Gem::Requirement
|
61
61
|
none: false
|
62
62
|
requirements:
|
63
63
|
- - ! '>='
|
@@ -65,7 +65,7 @@ dependencies:
|
|
65
65
|
version: '0'
|
66
66
|
type: :runtime
|
67
67
|
prerelease: false
|
68
|
-
version_requirements: *
|
68
|
+
version_requirements: *70196644199620
|
69
69
|
description: Its what I do
|
70
70
|
email:
|
71
71
|
- brett@weav.net
|
@@ -81,7 +81,6 @@ files:
|
|
81
81
|
- bin/simple_deploy
|
82
82
|
- lib/simple_deploy.rb
|
83
83
|
- lib/simple_deploy/artifact.rb
|
84
|
-
- lib/simple_deploy/artifact/artifact_lister.rb
|
85
84
|
- lib/simple_deploy/artifact/artifact_reader.rb
|
86
85
|
- lib/simple_deploy/cli.rb
|
87
86
|
- lib/simple_deploy/cli/variables.rb
|
@@ -109,7 +108,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
108
|
version: '0'
|
110
109
|
segments:
|
111
110
|
- 0
|
112
|
-
hash:
|
111
|
+
hash: 523987936351043911
|
113
112
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
113
|
none: false
|
115
114
|
requirements:
|
@@ -118,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
118
117
|
version: '0'
|
119
118
|
segments:
|
120
119
|
- 0
|
121
|
-
hash:
|
120
|
+
hash: 523987936351043911
|
122
121
|
requirements: []
|
123
122
|
rubyforge_project: simple_deploy
|
124
123
|
rubygems_version: 1.8.16
|