ey-deploy 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,6 @@ require 'json'
3
3
  module EY
4
4
  class Deploy::Configuration
5
5
  DEFAULT_CONFIG = {
6
- "migrate" => "rake db:migrate",
7
6
  "branch" => "master",
8
7
  "copy_exclude" => ".git",
9
8
  "strategy" => "Git",
@@ -25,12 +24,16 @@ module EY
25
24
  c.key?(meth.to_s) ? true : super
26
25
  end
27
26
 
27
+ def node
28
+ EY.node
29
+ end
30
+
28
31
  def repository_cache
29
32
  configuration['repository_cache'] || File.join(deploy_to, "/shared/cached-copy")
30
33
  end
31
34
 
32
35
  def repo
33
- configuration['repo'] || EY.node["applications"][app]["repository_name"]
36
+ configuration['repo'] || node["applications"][app]["repository_name"]
34
37
  end
35
38
 
36
39
  def deploy_to
@@ -46,12 +49,12 @@ module EY
46
49
  end
47
50
 
48
51
  def user
49
- EY.node['users'].first['username'] || 'nobody'
52
+ node['users'].first['username'] || 'nobody'
50
53
  end
51
54
  alias :group :user
52
55
 
53
56
  def role
54
- EY.node['instance_role']
57
+ node['instance_role']
55
58
  end
56
59
 
57
60
  def copy_exclude
@@ -59,11 +62,11 @@ module EY
59
62
  end
60
63
 
61
64
  def stack
62
- EY.node['environment']['stack']
65
+ node['environment']['stack']
63
66
  end
64
67
 
65
68
  def environment
66
- EY.node['environment']['framework_env']
69
+ node['environment']['framework_env']
67
70
  end
68
71
 
69
72
  def latest_release
@@ -1,3 +1,3 @@
1
1
  module EY
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,49 +1,47 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ey-deploy
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 29
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 4
9
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
10
11
  platform: ruby
11
12
  authors:
12
13
  - EY Cloud Team
13
- autorequire: ey-deploy
14
+ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-04-19 00:00:00 -07:00
18
- default_executable:
18
+ date: 2010-04-28 00:00:00 -07:00
19
+ default_executable: eysd
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
- type: :runtime
22
22
  version_requirements: &id001 !ruby/object:Gem::Requirement
23
+ none: false
23
24
  requirements:
24
25
  - - ">="
25
26
  - !ruby/object:Gem::Version
27
+ hash: 3
26
28
  segments:
27
29
  - 0
28
30
  version: "0"
31
+ name: rake
29
32
  requirement: *id001
30
- name: json
31
33
  prerelease: false
32
- description: A gem that deploys ruby applications on EY Cloud instances
34
+ type: :runtime
35
+ description:
33
36
  email: cloud@engineyard.com
34
37
  executables:
35
38
  - eysd
36
39
  extensions: []
37
40
 
38
- extra_rdoc_files:
39
- - README.rdoc
40
- - LICENSE
41
- - TODO
41
+ extra_rdoc_files: []
42
+
42
43
  files:
43
- - LICENSE
44
- - README.rdoc
45
- - Rakefile
46
- - TODO
44
+ - bin/eysd
47
45
  - lib/ey-deploy/cli.rb
48
46
  - lib/ey-deploy/compatibility.rb
49
47
  - lib/ey-deploy/configuration.rb
@@ -87,6 +85,8 @@ files:
87
85
  - lib/vendor/thor/README.rdoc
88
86
  - lib/vendor/thor/thor.gemspec
89
87
  - lib/vendor/thor/Thorfile
88
+ - LICENSE
89
+ - README.rdoc
90
90
  - spec/ey-deploy_spec.rb
91
91
  - spec/spec_helper.rb
92
92
  has_rdoc: true
@@ -99,25 +99,30 @@ rdoc_options: []
99
99
  require_paths:
100
100
  - lib
101
101
  required_ruby_version: !ruby/object:Gem::Requirement
102
+ none: false
102
103
  requirements:
103
104
  - - ">="
104
105
  - !ruby/object:Gem::Version
106
+ hash: 3
105
107
  segments:
106
108
  - 0
107
109
  version: "0"
108
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
+ none: false
109
112
  requirements:
110
113
  - - ">="
111
114
  - !ruby/object:Gem::Version
115
+ hash: 3
112
116
  segments:
113
117
  - 0
114
118
  version: "0"
115
119
  requirements: []
116
120
 
117
121
  rubyforge_project:
118
- rubygems_version: 1.3.6
122
+ rubygems_version: 1.3.7.pre.1
119
123
  signing_key:
120
124
  specification_version: 3
121
125
  summary: A gem that deploys ruby applications on EY Cloud instances
122
- test_files: []
123
-
126
+ test_files:
127
+ - spec/ey-deploy_spec.rb
128
+ - spec/spec_helper.rb
data/Rakefile DELETED
@@ -1,63 +0,0 @@
1
- require 'rubygems'
2
- require 'rake/gempackagetask'
3
- require 'rubygems/specification'
4
- require 'date'
5
- require 'spec/rake/spectask'
6
- require File.expand_path("lib/ey-deploy/version", File.dirname(__FILE__))
7
-
8
- GEM = "ey-deploy"
9
- GEM_VERSION = EY::VERSION
10
- AUTHOR = "EY Cloud Team"
11
- EMAIL = "cloud@engineyard.com"
12
- HOMEPAGE = "http://engineyard.com"
13
- SUMMARY = "A gem that deploys ruby applications on EY Cloud instances"
14
-
15
- spec = Gem::Specification.new do |s|
16
- s.name = GEM
17
- s.version = GEM_VERSION
18
- s.platform = Gem::Platform::RUBY
19
- s.has_rdoc = true
20
- s.extra_rdoc_files = ["README.rdoc", "LICENSE", 'TODO']
21
- s.summary = SUMMARY
22
- s.description = s.summary
23
- s.author = AUTHOR
24
- s.email = EMAIL
25
- s.homepage = HOMEPAGE
26
- s.bindir = "bin"
27
- s.executables = %w(eysd)
28
-
29
- bundle = Bundler::Definition.from_gemfile('Gemfile')
30
- bundle.dependencies.each do |dep|
31
- next unless dep.groups.include?(:runtime)
32
- s.add_dependency(dep.name, dep.version_requirements.to_s)
33
- end
34
-
35
- s.require_path = 'lib'
36
- s.autorequire = GEM
37
- s.files = %w(LICENSE README.rdoc Rakefile TODO) + Dir.glob("{lib,spec}/**/*")
38
- end
39
-
40
- task :default => :spec
41
-
42
- desc "Run specs"
43
- Spec::Rake::SpecTask.new do |t|
44
- t.spec_files = FileList['spec/**/*_spec.rb']
45
- t.spec_opts = %w(-fs --color)
46
- end
47
-
48
-
49
- Rake::GemPackageTask.new(spec) do |pkg|
50
- pkg.gem_spec = spec
51
- end
52
-
53
- desc "install the gem locally"
54
- task :install => [:package] do
55
- sh %{sudo gem install pkg/#{GEM}-#{GEM_VERSION}}
56
- end
57
-
58
- desc "create a gemspec file"
59
- task :make_spec do
60
- File.open("#{GEM}.gemspec", "w") do |file|
61
- file.puts spec.to_ruby
62
- end
63
- end
data/TODO DELETED
@@ -1,4 +0,0 @@
1
- TODO:
2
- Fix LICENSE with your name
3
- Fix Rakefile with your name and contact info
4
- Add your code to lib/<%= name %>.rb