engineyard 0.5.3 → 0.5.4
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 +71 -44
- data/lib/engineyard/cli/recipes.rb +17 -17
- data/lib/engineyard/cli/ui.rb +4 -8
- data/lib/engineyard/cli/web.rb +14 -15
- data/lib/engineyard/model/environment.rb +1 -1
- data/lib/engineyard/model/instance.rb +16 -4
- data/lib/engineyard/thor.rb +24 -18
- data/lib/engineyard/vendor/thor.rb +270 -0
- data/lib/engineyard/vendor/thor/actions.rb +297 -0
- data/lib/engineyard/vendor/thor/actions/create_file.rb +105 -0
- data/lib/engineyard/vendor/thor/actions/directory.rb +93 -0
- data/lib/engineyard/vendor/thor/actions/empty_directory.rb +134 -0
- data/lib/engineyard/vendor/thor/actions/file_manipulation.rb +229 -0
- data/lib/engineyard/vendor/thor/actions/inject_into_file.rb +104 -0
- data/lib/engineyard/vendor/thor/base.rb +540 -0
- data/lib/engineyard/vendor/thor/core_ext/file_binary_read.rb +9 -0
- data/lib/engineyard/vendor/thor/core_ext/hash_with_indifferent_access.rb +75 -0
- data/lib/engineyard/vendor/thor/core_ext/ordered_hash.rb +100 -0
- data/lib/engineyard/vendor/thor/error.rb +30 -0
- data/lib/engineyard/vendor/thor/group.rb +271 -0
- data/lib/engineyard/vendor/thor/invocation.rb +180 -0
- data/lib/engineyard/vendor/thor/parser.rb +4 -0
- data/lib/engineyard/vendor/thor/parser/argument.rb +67 -0
- data/lib/engineyard/vendor/thor/parser/arguments.rb +161 -0
- data/lib/engineyard/vendor/thor/parser/option.rb +128 -0
- data/lib/engineyard/vendor/thor/parser/options.rb +164 -0
- data/lib/engineyard/vendor/thor/rake_compat.rb +66 -0
- data/lib/engineyard/vendor/thor/runner.rb +314 -0
- data/lib/engineyard/vendor/thor/shell.rb +83 -0
- data/lib/engineyard/vendor/thor/shell/basic.rb +268 -0
- data/lib/engineyard/vendor/thor/shell/color.rb +108 -0
- data/lib/engineyard/vendor/thor/task.rb +102 -0
- data/lib/engineyard/vendor/thor/util.rb +229 -0
- data/lib/engineyard/vendor/thor/version.rb +3 -0
- data/lib/engineyard/version.rb +1 -1
- data/spec/ey/deploy_spec.rb +24 -5
- data/spec/ey/ey_spec.rb +1 -1
- data/spec/ey/rollback_spec.rb +7 -0
- data/spec/spec_helper.rb +13 -0
- data/spec/support/git_repo.rb +10 -7
- data/spec/support/helpers.rb +2 -2
- metadata +30 -4
- data/lib/engineyard/cli/thor_fixes.rb +0 -26
data/spec/support/helpers.rb
CHANGED
@@ -128,10 +128,10 @@ module EY
|
|
128
128
|
class << self
|
129
129
|
def fake_awsm
|
130
130
|
@fake_awsm ||= begin
|
131
|
-
|
131
|
+
config_ru = File.join(EY_ROOT, "spec/support/fake_awsm.ru")
|
132
|
+
unless system("ruby -c '#{config_ru}' > /dev/null")
|
132
133
|
raise SyntaxError, "There is a syntax error in fake_awsm.ru! fix it!"
|
133
134
|
end
|
134
|
-
config_ru = File.join(EY_ROOT, "spec/support/fake_awsm.ru")
|
135
135
|
@server = RealWeb.start_server_in_fork(config_ru)
|
136
136
|
"http://localhost:#{@server.port}"
|
137
137
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 4
|
9
|
+
version: 0.5.4
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- EY Cloud Team
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-06-
|
17
|
+
date: 2010-06-23 00:00:00 -07:00
|
18
18
|
default_executable: ey
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -111,7 +111,6 @@ files:
|
|
111
111
|
- lib/engineyard/api.rb
|
112
112
|
- lib/engineyard/cli/api.rb
|
113
113
|
- lib/engineyard/cli/recipes.rb
|
114
|
-
- lib/engineyard/cli/thor_fixes.rb
|
115
114
|
- lib/engineyard/cli/ui.rb
|
116
115
|
- lib/engineyard/cli/web.rb
|
117
116
|
- lib/engineyard/cli.rb
|
@@ -128,6 +127,33 @@ files:
|
|
128
127
|
- lib/engineyard/repo.rb
|
129
128
|
- lib/engineyard/ruby_ext.rb
|
130
129
|
- lib/engineyard/thor.rb
|
130
|
+
- lib/engineyard/vendor/thor/actions/create_file.rb
|
131
|
+
- lib/engineyard/vendor/thor/actions/directory.rb
|
132
|
+
- lib/engineyard/vendor/thor/actions/empty_directory.rb
|
133
|
+
- lib/engineyard/vendor/thor/actions/file_manipulation.rb
|
134
|
+
- lib/engineyard/vendor/thor/actions/inject_into_file.rb
|
135
|
+
- lib/engineyard/vendor/thor/actions.rb
|
136
|
+
- lib/engineyard/vendor/thor/base.rb
|
137
|
+
- lib/engineyard/vendor/thor/core_ext/file_binary_read.rb
|
138
|
+
- lib/engineyard/vendor/thor/core_ext/hash_with_indifferent_access.rb
|
139
|
+
- lib/engineyard/vendor/thor/core_ext/ordered_hash.rb
|
140
|
+
- lib/engineyard/vendor/thor/error.rb
|
141
|
+
- lib/engineyard/vendor/thor/group.rb
|
142
|
+
- lib/engineyard/vendor/thor/invocation.rb
|
143
|
+
- lib/engineyard/vendor/thor/parser/argument.rb
|
144
|
+
- lib/engineyard/vendor/thor/parser/arguments.rb
|
145
|
+
- lib/engineyard/vendor/thor/parser/option.rb
|
146
|
+
- lib/engineyard/vendor/thor/parser/options.rb
|
147
|
+
- lib/engineyard/vendor/thor/parser.rb
|
148
|
+
- lib/engineyard/vendor/thor/rake_compat.rb
|
149
|
+
- lib/engineyard/vendor/thor/runner.rb
|
150
|
+
- lib/engineyard/vendor/thor/shell/basic.rb
|
151
|
+
- lib/engineyard/vendor/thor/shell/color.rb
|
152
|
+
- lib/engineyard/vendor/thor/shell.rb
|
153
|
+
- lib/engineyard/vendor/thor/task.rb
|
154
|
+
- lib/engineyard/vendor/thor/util.rb
|
155
|
+
- lib/engineyard/vendor/thor/version.rb
|
156
|
+
- lib/engineyard/vendor/thor.rb
|
131
157
|
- lib/engineyard/version.rb
|
132
158
|
- lib/engineyard.rb
|
133
159
|
- LICENSE
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# This particular pile of monkeypatch can be removed once we have a
|
2
|
-
# thor that doesn't consume an argument for --no-migrate.
|
3
|
-
#
|
4
|
-
# A fix has been written and a pull request sent.
|
5
|
-
# The fix is
|
6
|
-
# http://github.com/smerritt/thor/commit/421b2e97684e67ee393a13b3873e1a784bb83f68
|
7
|
-
|
8
|
-
class ::Thor
|
9
|
-
class Arguments
|
10
|
-
private
|
11
|
-
|
12
|
-
def no_or_skip?(arg)
|
13
|
-
arg =~ /^--(no|skip)-([-\w]+)$/
|
14
|
-
$2
|
15
|
-
end
|
16
|
-
|
17
|
-
def parse_string(name)
|
18
|
-
if no_or_skip?(name)
|
19
|
-
nil
|
20
|
-
else
|
21
|
-
shift
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
end
|
26
|
-
end
|