cfoundry 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cfoundry/app.rb +31 -2
- data/lib/cfoundry/version.rb +1 -1
- metadata +100 -61
data/lib/cfoundry/app.rb
CHANGED
@@ -162,6 +162,16 @@ module CFoundry
|
|
162
162
|
end
|
163
163
|
end
|
164
164
|
|
165
|
+
def command
|
166
|
+
manifest["staging"]["command"]
|
167
|
+
end
|
168
|
+
|
169
|
+
def command=(v)
|
170
|
+
@manifest ||= {}
|
171
|
+
@manifest["staging"] ||= {}
|
172
|
+
@manifest["staging"]["command"] = v
|
173
|
+
end
|
174
|
+
|
165
175
|
def memory
|
166
176
|
manifest["resources"]["memory"]
|
167
177
|
end
|
@@ -239,8 +249,16 @@ module CFoundry
|
|
239
249
|
|
240
250
|
files = Dir.glob("#{path}/{*,.[^\.]*}")
|
241
251
|
|
242
|
-
|
243
|
-
|
252
|
+
exclude = UPLOAD_EXCLUDE
|
253
|
+
if File.exists?("#{path}/.vmcignore")
|
254
|
+
exclude += File.read("#{path}/.vmcignore").split(/\n+/)
|
255
|
+
end
|
256
|
+
|
257
|
+
# prevent initial copying if we can, remove sub-files later
|
258
|
+
files.reject! do |f|
|
259
|
+
exclude.any? do |e|
|
260
|
+
File.fnmatch(f.sub(path + "/", ""), e)
|
261
|
+
end
|
244
262
|
end
|
245
263
|
|
246
264
|
FileUtils.cp_r(files, to)
|
@@ -248,6 +266,17 @@ module CFoundry
|
|
248
266
|
find_sockets(to).each do |s|
|
249
267
|
File.delete s
|
250
268
|
end
|
269
|
+
|
270
|
+
# remove ignored globs more thoroughly
|
271
|
+
#
|
272
|
+
# note that the above file list only includes toplevel
|
273
|
+
# files/directories for cp_r, so this is where sub-files/etc. are
|
274
|
+
# removed
|
275
|
+
exclude.each do |e|
|
276
|
+
Dir.glob("#{to}/#{e}").each do |f|
|
277
|
+
FileUtils.rm_rf(f)
|
278
|
+
end
|
279
|
+
end
|
251
280
|
end
|
252
281
|
end
|
253
282
|
|
data/lib/cfoundry/version.rb
CHANGED
metadata
CHANGED
@@ -1,78 +1,108 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: cfoundry
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Alex Suraci
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
17
|
+
|
18
|
+
date: 2012-05-08 00:00:00 Z
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
15
21
|
name: rest-client
|
16
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
24
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 13
|
29
|
+
segments:
|
30
|
+
- 1
|
31
|
+
- 6
|
32
|
+
- 1
|
33
|
+
version: 1.6.1
|
22
34
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: *id001
|
36
|
+
- !ruby/object:Gem::Dependency
|
26
37
|
name: json_pure
|
27
|
-
|
38
|
+
prerelease: false
|
39
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
40
|
none: false
|
29
|
-
requirements:
|
30
|
-
- -
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
|
41
|
+
requirements:
|
42
|
+
- - ~>
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 5
|
45
|
+
segments:
|
46
|
+
- 1
|
47
|
+
- 6
|
48
|
+
- 5
|
49
|
+
version: 1.6.5
|
33
50
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
51
|
+
version_requirements: *id002
|
52
|
+
- !ruby/object:Gem::Dependency
|
37
53
|
name: rubyzip
|
38
|
-
|
54
|
+
prerelease: false
|
55
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
56
|
none: false
|
40
|
-
requirements:
|
41
|
-
- -
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
57
|
+
requirements:
|
58
|
+
- - ~>
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
hash: 49
|
61
|
+
segments:
|
62
|
+
- 0
|
63
|
+
- 9
|
64
|
+
- 5
|
65
|
+
version: 0.9.5
|
44
66
|
type: :runtime
|
45
|
-
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
67
|
+
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
48
69
|
name: rake
|
49
|
-
|
70
|
+
prerelease: false
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
72
|
none: false
|
51
|
-
requirements:
|
52
|
-
- -
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 3
|
77
|
+
segments:
|
78
|
+
- 0
|
79
|
+
version: "0"
|
55
80
|
type: :development
|
56
|
-
|
57
|
-
|
58
|
-
- !ruby/object:Gem::Dependency
|
81
|
+
version_requirements: *id004
|
82
|
+
- !ruby/object:Gem::Dependency
|
59
83
|
name: rspec
|
60
|
-
|
84
|
+
prerelease: false
|
85
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
61
86
|
none: false
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
65
|
-
|
87
|
+
requirements:
|
88
|
+
- - ">="
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
hash: 3
|
91
|
+
segments:
|
92
|
+
- 0
|
93
|
+
version: "0"
|
66
94
|
type: :development
|
67
|
-
|
68
|
-
version_requirements: *70172796553820
|
95
|
+
version_requirements: *id005
|
69
96
|
description:
|
70
|
-
email:
|
97
|
+
email:
|
71
98
|
- asuraci@vmware.com
|
72
99
|
executables: []
|
100
|
+
|
73
101
|
extensions: []
|
102
|
+
|
74
103
|
extra_rdoc_files: []
|
75
|
-
|
104
|
+
|
105
|
+
files:
|
76
106
|
- LICENSE
|
77
107
|
- Rakefile
|
78
108
|
- lib/cfoundry/app.rb
|
@@ -89,29 +119,38 @@ files:
|
|
89
119
|
- spec/Rakefile
|
90
120
|
homepage: http://cloudfoundry.com/
|
91
121
|
licenses: []
|
122
|
+
|
92
123
|
post_install_message:
|
93
124
|
rdoc_options: []
|
94
|
-
|
125
|
+
|
126
|
+
require_paths:
|
95
127
|
- lib
|
96
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
128
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
97
129
|
none: false
|
98
|
-
requirements:
|
99
|
-
- -
|
100
|
-
- !ruby/object:Gem::Version
|
101
|
-
|
102
|
-
|
130
|
+
requirements:
|
131
|
+
- - ">="
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
hash: 3
|
134
|
+
segments:
|
135
|
+
- 0
|
136
|
+
version: "0"
|
137
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
138
|
none: false
|
104
|
-
requirements:
|
105
|
-
- -
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
hash: 3
|
143
|
+
segments:
|
144
|
+
- 0
|
145
|
+
version: "0"
|
108
146
|
requirements: []
|
147
|
+
|
109
148
|
rubyforge_project: cfoundry
|
110
|
-
rubygems_version: 1.8.
|
149
|
+
rubygems_version: 1.8.23
|
111
150
|
signing_key:
|
112
151
|
specification_version: 3
|
113
152
|
summary: High-level library for working with the Cloud Foundry API.
|
114
|
-
test_files:
|
153
|
+
test_files:
|
115
154
|
- spec/client_spec.rb
|
116
155
|
- spec/helpers.rb
|
117
156
|
- spec/Rakefile
|