engineyard-local 0.2.1 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/Gemfile.lock +73 -1
- data/README.md +40 -38
- data/config/dna.json +92 -66
- data/config/locales/en.yml +94 -9
- data/config/patches/chef-ey-1.1.336.patch +55 -0
- data/config/settings.yml +6 -1
- data/engineyard-local.gemspec +5 -4
- data/install/osx/README.md +42 -4
- data/install/osx/engineyard-local/engineyard-local.pkgproj +35 -6
- data/install/osx/images/dmg_background.png +0 -0
- data/install/osx/images/dmg_icon.icns +0 -0
- data/lib/engineyard-local.rb +64 -0
- data/lib/engineyard-local/command.rb +23 -0
- data/lib/engineyard-local/command/base.rb +78 -1
- data/lib/engineyard-local/command/group.rb +70 -6
- data/lib/engineyard-local/command/help.rb +36 -0
- data/lib/engineyard-local/command/helpers.rb +12 -0
- data/lib/engineyard-local/command/start.rb +26 -0
- data/lib/engineyard-local/command/status.rb +33 -0
- data/lib/engineyard-local/command/stop.rb +26 -0
- data/lib/engineyard-local/command/terminate.rb +26 -0
- data/lib/engineyard-local/command/up.rb +24 -15
- data/lib/engineyard-local/command/update.rb +42 -0
- data/lib/engineyard-local/middleware.rb +1 -0
- data/lib/engineyard-local/middleware/bundle.rb +1 -0
- data/lib/engineyard-local/middleware/chef.rb +52 -2
- data/lib/engineyard-local/middleware/cookbooks.rb +111 -0
- data/lib/engineyard-local/middleware/dna.rb +6 -4
- data/lib/engineyard-local/middleware/exec.rb +2 -1
- data/lib/engineyard-local/middleware/helpers/executable.rb +14 -2
- data/lib/engineyard-local/middleware/network.rb +3 -3
- data/lib/engineyard-local/middleware/rails.rb +1 -0
- data/lib/engineyard-local/middleware/rails/assets.rb +35 -0
- data/lib/engineyard-local/middleware/rails/command.rb +1 -1
- data/lib/engineyard-local/middleware/rails/db.rb +0 -1
- data/lib/engineyard-local/middleware/rails/new.rb +1 -1
- data/lib/engineyard-local/version.rb +1 -1
- data/test/engineyard-local/command/up_test.rb +1 -0
- data/test/integration/commands_test.rb +30 -0
- data/test/test_helper.rb +8 -2
- metadata +81 -70
- data/install/osx/images/eylocal_installer.png +0 -0
- data/test/integration/up_test.rb +0 -28
data/test/test_helper.rb
CHANGED
@@ -45,14 +45,20 @@ module Engineyard
|
|
45
45
|
|
46
46
|
test_dir = File.join(tmp_dir, "project")
|
47
47
|
if !File.exists?(test_dir)
|
48
|
-
|
49
|
-
`git clone https://github.com/engineyard/todo.git #{test_dir}`
|
48
|
+
`rails new #{test_dir}`
|
50
49
|
end
|
51
50
|
|
52
51
|
test_dir
|
53
52
|
end
|
54
53
|
end
|
55
54
|
|
55
|
+
def clean_env
|
56
|
+
@@clean_env_ran ||= begin
|
57
|
+
system_call("ey-local destroy -f")
|
58
|
+
true
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
56
62
|
def fail_on_stderr
|
57
63
|
UI::Colored.class_eval do
|
58
64
|
def error; raise "output to stderr"; end
|
metadata
CHANGED
@@ -1,64 +1,73 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: engineyard-local
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 2
|
9
|
-
- 1
|
10
|
-
version: 0.2.1
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
13
|
-
-
|
7
|
+
authors:
|
8
|
+
- Kirk Haines
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-11-15 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: vagrant
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 0
|
32
|
-
- 1
|
33
|
-
version: 1.0.1
|
18
|
+
requirements:
|
19
|
+
- - '='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.0.5
|
34
22
|
type: :runtime
|
35
|
-
|
36
|
-
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - '='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 1.0.5
|
30
|
+
- !ruby/object:Gem::Dependency
|
37
31
|
name: thor
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ~>
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: 0.14.6
|
38
|
+
type: :runtime
|
38
39
|
prerelease: false
|
39
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
41
|
none: false
|
41
|
-
requirements:
|
42
|
+
requirements:
|
42
43
|
- - ~>
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
hash: 43
|
45
|
-
segments:
|
46
|
-
- 0
|
47
|
-
- 14
|
48
|
-
- 6
|
44
|
+
- !ruby/object:Gem::Version
|
49
45
|
version: 0.14.6
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: nokogiri
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: 1.5.2
|
50
54
|
type: :runtime
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.5.2
|
62
|
+
description: Engine Yard Local allows you to develop and test locally on your own
|
63
|
+
computer using a virtual machine with an Engine Yard environment.
|
64
|
+
email:
|
65
|
+
- khaines@engineyard.com
|
66
|
+
executables:
|
56
67
|
- ey-local
|
57
68
|
extensions: []
|
58
|
-
|
59
69
|
extra_rdoc_files: []
|
60
|
-
|
61
|
-
files:
|
70
|
+
files:
|
62
71
|
- .gitignore
|
63
72
|
- Gemfile
|
64
73
|
- Gemfile.lock
|
@@ -67,6 +76,7 @@ files:
|
|
67
76
|
- bin/ey-local
|
68
77
|
- config/dna.json
|
69
78
|
- config/locales/en.yml
|
79
|
+
- config/patches/chef-ey-1.1.336.patch
|
70
80
|
- config/settings.yml
|
71
81
|
- config/solo.rb
|
72
82
|
- engineyard-local.gemspec
|
@@ -77,7 +87,8 @@ files:
|
|
77
87
|
- install/osx/README.md
|
78
88
|
- install/osx/Rakefile
|
79
89
|
- install/osx/engineyard-local/engineyard-local.pkgproj
|
80
|
-
- install/osx/images/
|
90
|
+
- install/osx/images/dmg_background.png
|
91
|
+
- install/osx/images/dmg_icon.icns
|
81
92
|
- install/osx/scripts/log.sh
|
82
93
|
- install/osx/scripts/postinstall
|
83
94
|
- install/osx/scripts/rvm_install.sh
|
@@ -86,15 +97,22 @@ files:
|
|
86
97
|
- lib/engineyard-local/command/base.rb
|
87
98
|
- lib/engineyard-local/command/exec.rb
|
88
99
|
- lib/engineyard-local/command/group.rb
|
100
|
+
- lib/engineyard-local/command/help.rb
|
89
101
|
- lib/engineyard-local/command/helpers.rb
|
90
102
|
- lib/engineyard-local/command/list.rb
|
91
103
|
- lib/engineyard-local/command/rails.rb
|
104
|
+
- lib/engineyard-local/command/start.rb
|
105
|
+
- lib/engineyard-local/command/status.rb
|
106
|
+
- lib/engineyard-local/command/stop.rb
|
107
|
+
- lib/engineyard-local/command/terminate.rb
|
92
108
|
- lib/engineyard-local/command/up.rb
|
109
|
+
- lib/engineyard-local/command/update.rb
|
93
110
|
- lib/engineyard-local/command/vagrant_action.rb
|
94
111
|
- lib/engineyard-local/errors.rb
|
95
112
|
- lib/engineyard-local/middleware.rb
|
96
113
|
- lib/engineyard-local/middleware/bundle.rb
|
97
114
|
- lib/engineyard-local/middleware/chef.rb
|
115
|
+
- lib/engineyard-local/middleware/cookbooks.rb
|
98
116
|
- lib/engineyard-local/middleware/default_provisioner.rb
|
99
117
|
- lib/engineyard-local/middleware/dna.rb
|
100
118
|
- lib/engineyard-local/middleware/exec.rb
|
@@ -105,6 +123,7 @@ files:
|
|
105
123
|
- lib/engineyard-local/middleware/helpers/uploadable.rb
|
106
124
|
- lib/engineyard-local/middleware/network.rb
|
107
125
|
- lib/engineyard-local/middleware/rails.rb
|
126
|
+
- lib/engineyard-local/middleware/rails/assets.rb
|
108
127
|
- lib/engineyard-local/middleware/rails/command.rb
|
109
128
|
- lib/engineyard-local/middleware/rails/db.rb
|
110
129
|
- lib/engineyard-local/middleware/rails/install.rb
|
@@ -126,42 +145,34 @@ files:
|
|
126
145
|
- test/engineyard-local/middelware/rails/install_test.rb
|
127
146
|
- test/engineyard-local/ui_test.rb
|
128
147
|
- test/engineyard-local/virtualbox_test.rb
|
129
|
-
- test/integration/
|
148
|
+
- test/integration/commands_test.rb
|
130
149
|
- test/test_helper.rb
|
131
|
-
homepage:
|
150
|
+
homepage: ''
|
132
151
|
licenses: []
|
133
|
-
|
134
152
|
post_install_message:
|
135
153
|
rdoc_options: []
|
136
|
-
|
137
|
-
require_paths:
|
154
|
+
require_paths:
|
138
155
|
- lib
|
139
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
156
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
140
157
|
none: false
|
141
|
-
requirements:
|
142
|
-
- -
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
|
145
|
-
|
146
|
-
- 0
|
147
|
-
version: "0"
|
148
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
158
|
+
requirements:
|
159
|
+
- - ! '>='
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
version: '0'
|
162
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
149
163
|
none: false
|
150
|
-
requirements:
|
151
|
-
- -
|
152
|
-
- !ruby/object:Gem::Version
|
153
|
-
|
154
|
-
segments:
|
155
|
-
- 0
|
156
|
-
version: "0"
|
164
|
+
requirements:
|
165
|
+
- - ! '>='
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: '0'
|
157
168
|
requirements: []
|
158
|
-
|
159
169
|
rubyforge_project: engineyard-local
|
160
|
-
rubygems_version: 1.8.
|
170
|
+
rubygems_version: 1.8.24
|
161
171
|
signing_key:
|
162
172
|
specification_version: 3
|
163
|
-
summary:
|
164
|
-
|
173
|
+
summary: Engine Yard Local allows you to develop and test locally on your own computer
|
174
|
+
using a virtual machine with an Engine Yard environment.
|
175
|
+
test_files:
|
165
176
|
- test/engineyard-local/command/group_test.rb
|
166
177
|
- test/engineyard-local/command/up_test.rb
|
167
178
|
- test/engineyard-local/command_test.rb
|
@@ -174,5 +185,5 @@ test_files:
|
|
174
185
|
- test/engineyard-local/middelware/rails/install_test.rb
|
175
186
|
- test/engineyard-local/ui_test.rb
|
176
187
|
- test/engineyard-local/virtualbox_test.rb
|
177
|
-
- test/integration/
|
188
|
+
- test/integration/commands_test.rb
|
178
189
|
- test/test_helper.rb
|
Binary file
|
data/test/integration/up_test.rb
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
require "test_helper"
|
2
|
-
|
3
|
-
module Integration
|
4
|
-
class UpTest < Test::Unit::TestCase
|
5
|
-
include Engineyard::Local::TestHelpers::Integration
|
6
|
-
|
7
|
-
def setup
|
8
|
-
Dir.chdir(ensure_test_directory)
|
9
|
-
clear_init
|
10
|
-
fail_on_stderr
|
11
|
-
end
|
12
|
-
|
13
|
-
# TODO break these out or rename the test set
|
14
|
-
context "up command" do
|
15
|
-
should "complete the creation of the vm without prompting" do
|
16
|
-
assert_cmd("ey-local up --silent")
|
17
|
-
end
|
18
|
-
|
19
|
-
should "list the vm that was created" do
|
20
|
-
assert(`ey-local list` != "", "the output should not be empty")
|
21
|
-
end
|
22
|
-
|
23
|
-
should "destroy the vm that was created" do
|
24
|
-
assert_cmd("ey-local destroy -f")
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|