engineyard 1.4.11 → 1.4.13
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/engineyard/cli.rb +3 -1
- data/lib/engineyard/resolver.rb +2 -2
- data/lib/engineyard/version.rb +1 -1
- data/spec/ey/deploy_spec.rb +2 -2
- metadata +7 -7
data/lib/engineyard/cli.rb
CHANGED
@@ -50,6 +50,8 @@ module EY
|
|
50
50
|
method_option :extra_deploy_hook_options, :type => :hash, :default => {},
|
51
51
|
:desc => "Additional options to be made available in deploy hooks (in the 'config' hash)"
|
52
52
|
def deploy
|
53
|
+
EY.ui.info "Loading application data from EY Cloud..."
|
54
|
+
|
53
55
|
app, environment = fetch_app_and_environment(options[:app], options[:environment], options[:account])
|
54
56
|
environment.ignore_bad_master = options[:ignore_bad_master]
|
55
57
|
deploy_ref = if options[:app]
|
@@ -61,7 +63,7 @@ module EY
|
|
61
63
|
raise(DeployArgumentError)
|
62
64
|
end
|
63
65
|
|
64
|
-
EY.ui.info "Beginning deploy for '#{app.name}' in '#{environment.name}' on server..."
|
66
|
+
EY.ui.info "Beginning deploy of ref '#{deploy_ref}' for '#{app.name}' in '#{environment.name}' on server..."
|
65
67
|
|
66
68
|
deploy_options = {'extras' => options[:extra_deploy_hook_options]}
|
67
69
|
if options.has_key?('migrate') # thor set migrate => nil when --no-migrate
|
data/lib/engineyard/resolver.rb
CHANGED
@@ -24,7 +24,7 @@ module EY
|
|
24
24
|
if options[:environment_name]
|
25
25
|
message = "Multiple environments possible, please be more specific:\n\n"
|
26
26
|
candidates.map{|e| [e[:account_name], e[:environment_name]]}.uniq.each do |account_name, environment_name|
|
27
|
-
message << "\t#{environment_name} # ey <command> --environment='#{environment_name}' --account='#{account_name}'\n"
|
27
|
+
message << "\t#{environment_name.ljust(25)} # ey <command> --environment='#{environment_name}' --account='#{account_name}'\n"
|
28
28
|
end
|
29
29
|
raise MultipleMatchesError.new(message)
|
30
30
|
else
|
@@ -65,7 +65,7 @@ module EY
|
|
65
65
|
candidates.map{|c| [c[:account_name], c[:app_name]]}.uniq.each do |account_name, app_name|
|
66
66
|
message << "#{app_name}\n"
|
67
67
|
candidates.select {|c| c[:app_name] == app_name && c[:account_name] == account_name}.map{|c| c[:environment_name]}.uniq.each do |env_name|
|
68
|
-
message << "\t#{env_name} # ey <command> --environment='#{env_name}' --app='#{app_name}' --account='#{account_name}'\n"
|
68
|
+
message << "\t#{env_name.ljust(25)} # ey <command> --environment='#{env_name}' --app='#{app_name}' --account='#{account_name}'\n"
|
69
69
|
end
|
70
70
|
end
|
71
71
|
raise MultipleMatchesError.new(message)
|
data/lib/engineyard/version.rb
CHANGED
data/spec/ey/deploy_spec.rb
CHANGED
@@ -36,7 +36,7 @@ describe "ey deploy" do
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def verify_ran(scenario)
|
39
|
-
@out.should match(/Beginning deploy for
|
39
|
+
@out.should match(/Beginning deploy of ref '[^']+' for '#{scenario[:application]}' in '#{scenario[:environment]}'/)
|
40
40
|
@out.should match(/deployment recorded in AppCloud/i)
|
41
41
|
@ssh_commands.should have_command_like(/engineyard-serverside.*deploy.*--app #{scenario[:application]}/)
|
42
42
|
end
|
@@ -283,7 +283,7 @@ describe "ey deploy" do
|
|
283
283
|
|
284
284
|
it "lets you choose by complete name even if the complete name is ambiguous" do
|
285
285
|
fast_ey %w[deploy --environment railsapp_staging]
|
286
|
-
@out.should match(/Beginning deploy for
|
286
|
+
@out.should match(/Beginning deploy of ref 'master' for '[\w]+' in 'railsapp_staging'/)
|
287
287
|
end
|
288
288
|
end
|
289
289
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: engineyard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 1.4.
|
9
|
+
- 13
|
10
|
+
version: 1.4.13
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- EY Cloud Team
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-12-08 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|
@@ -101,12 +101,12 @@ dependencies:
|
|
101
101
|
requirements:
|
102
102
|
- - "="
|
103
103
|
- !ruby/object:Gem::Version
|
104
|
-
hash:
|
104
|
+
hash: 41
|
105
105
|
segments:
|
106
106
|
- 1
|
107
107
|
- 5
|
108
|
-
-
|
109
|
-
version: 1.5.
|
108
|
+
- 21
|
109
|
+
version: 1.5.21
|
110
110
|
requirement: *id006
|
111
111
|
type: :runtime
|
112
112
|
prerelease: false
|