engineyard 2.0.1 → 2.0.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/engineyard/cli/ui.rb +1 -1
- data/lib/engineyard/eyrc.rb +1 -1
- data/lib/engineyard/version.rb +1 -1
- metadata +4 -5
- data/lib/engineyard/commands/deploy.rb +0 -60
data/lib/engineyard/cli/ui.rb
CHANGED
data/lib/engineyard/eyrc.rb
CHANGED
data/lib/engineyard/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: engineyard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-08-
|
12
|
+
date: 2012-08-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
@@ -330,7 +330,6 @@ files:
|
|
330
330
|
- lib/engineyard/cli/ui.rb
|
331
331
|
- lib/engineyard/cli/web.rb
|
332
332
|
- lib/engineyard/cli.rb
|
333
|
-
- lib/engineyard/commands/deploy.rb
|
334
333
|
- lib/engineyard/config.rb
|
335
334
|
- lib/engineyard/deploy_config/migrate.rb
|
336
335
|
- lib/engineyard/deploy_config/ref.rb
|
@@ -409,7 +408,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
409
408
|
version: '0'
|
410
409
|
segments:
|
411
410
|
- 0
|
412
|
-
hash: -
|
411
|
+
hash: -3647480846806604559
|
413
412
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
414
413
|
none: false
|
415
414
|
requirements:
|
@@ -418,7 +417,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
418
417
|
version: '0'
|
419
418
|
segments:
|
420
419
|
- 0
|
421
|
-
hash: -
|
420
|
+
hash: -3647480846806604559
|
422
421
|
requirements: []
|
423
422
|
rubyforge_project:
|
424
423
|
rubygems_version: 1.8.24
|
@@ -1,60 +0,0 @@
|
|
1
|
-
class EY
|
2
|
-
module Commands
|
3
|
-
class Deploy
|
4
|
-
app_env = fetch_app_environment(options[:app], options[:environment], options[:account])
|
5
|
-
|
6
|
-
env_config = config.environment_config(app_env.environment_name)
|
7
|
-
deploy_config = EY::DeployConfig.new(options, env_config, repo, ui)
|
8
|
-
|
9
|
-
deployment = app_env.new_deployment({
|
10
|
-
:ref => deploy_config.ref,
|
11
|
-
:migrate => deploy_config.migrate,
|
12
|
-
:migrate_command => deploy_config.migrate_command,
|
13
|
-
:extra_config => deploy_config.extra_config,
|
14
|
-
})
|
15
|
-
|
16
|
-
runner = serverside_runner(app_env, deploy_config.verbose, options[:ignore_bad_master])
|
17
|
-
|
18
|
-
out = EY::CLI::UI::Tee.new(ui.out, deployment.out)
|
19
|
-
err = EY::CLI::UI::Tee.new(ui.err, deployment.err)
|
20
|
-
|
21
|
-
ui.info "Beginning deploy..."
|
22
|
-
begin
|
23
|
-
deployment.start
|
24
|
-
ui.show_deployment(deployment)
|
25
|
-
out << "Deploy initiated.\n"
|
26
|
-
|
27
|
-
runner.deploy do |args|
|
28
|
-
args.config = deployment.config if deployment.config
|
29
|
-
if deployment.migrate
|
30
|
-
args.migrate = deployment.migrate_command
|
31
|
-
else
|
32
|
-
args.migrate = false
|
33
|
-
end
|
34
|
-
args.ref = deployment.resolved_ref
|
35
|
-
end
|
36
|
-
deployment.successful = runner.call(out, err)
|
37
|
-
rescue Interrupt
|
38
|
-
err << "Interrupted. Deployment halted.\n"
|
39
|
-
ui.warn "Recording canceled deployment in Engine Yard Cloud..."
|
40
|
-
ui.warn "WARNING: Interrupting again may result in a never-finished deployment in the deployment history on Engine Yard Cloud."
|
41
|
-
raise
|
42
|
-
rescue StandardError => e
|
43
|
-
deployment.err << "Error encountered during deploy.\n#{e.class} #{e}\n"
|
44
|
-
ui.print_exception(e)
|
45
|
-
raise
|
46
|
-
ensure
|
47
|
-
deployment.finished
|
48
|
-
|
49
|
-
if deployment.successful?
|
50
|
-
ui.info "Successful deployment recorded on Engine Yard Cloud"
|
51
|
-
ui.info "Deploy complete"
|
52
|
-
ui.info "Now you can run `ey launch' to open the application in a browser."
|
53
|
-
else
|
54
|
-
ui.info "Failed deployment recorded on Engine Yard Cloud"
|
55
|
-
raise EY::Error, "Deploy failed"
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|