cloudwalk 0.4.1 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/i386-apple-darwin14 +0 -0
- data/exe/i686-pc-linux-gnu +0 -0
- data/exe/i686-w64-mingw32.exe +0 -0
- data/exe/x86_64-apple-darwin14 +0 -0
- data/exe/x86_64-pc-linux-gnu +0 -0
- data/exe/x86_64-w64-mingw32.exe +0 -0
- data/lib/cloudwalk/cw_file_json.rb +7 -1
- data/lib/cloudwalk/posxml_version.rb +1 -1
- data/lib/cloudwalk/rake_task.rb +3 -0
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37667857b19ab8a888cb30cc5f8e3c128563de0a
|
4
|
+
data.tar.gz: 04340e7c0b55377263e0f5005bbff4d6df170e39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5bf00a5d8cbf8ce67aa33fd273bbb219ca6052273ceb314dcbb9f7aab7ad7b597a8ec41274c61144719d5f5609a1427843ed36de332d10beb3a9e890c778f875
|
7
|
+
data.tar.gz: c1779ce771740f59d55aa25cda6fa09cc3ddcebb9460a46200005fec78bbf668c669cf1e6cf78c663a1192815a7ea33409d29898361300f850bb45526e3d8ffe
|
data/exe/i386-apple-darwin14
CHANGED
Binary file
|
data/exe/i686-pc-linux-gnu
CHANGED
Binary file
|
data/exe/i686-w64-mingw32.exe
CHANGED
Binary file
|
data/exe/x86_64-apple-darwin14
CHANGED
Binary file
|
data/exe/x86_64-pc-linux-gnu
CHANGED
Binary file
|
data/exe/x86_64-w64-mingw32.exe
CHANGED
Binary file
|
@@ -155,6 +155,7 @@ module Cloudwalk
|
|
155
155
|
def self.deploy(outs)
|
156
156
|
outs.each do |path|
|
157
157
|
posxml = path.split("/").last
|
158
|
+
print "=> Deploying #{posxml}"
|
158
159
|
app_lock = self.lock.find {|config| config["name"] == posxml }
|
159
160
|
|
160
161
|
unless app_lock
|
@@ -171,9 +172,14 @@ module Cloudwalk
|
|
171
172
|
|
172
173
|
app_cwfile = self.cwfile["apps"].find {|config| config["name"] == posxml2xml(posxml) }
|
173
174
|
|
174
|
-
Cloudwalk::PosxmlVersion.update(
|
175
|
+
ret, response = Cloudwalk::PosxmlVersion.update(
|
175
176
|
app_lock["id"], app_lock["version_id"], File.read(path), app_cwfile
|
176
177
|
)
|
178
|
+
if ret
|
179
|
+
puts "=> Success Deployed"
|
180
|
+
else
|
181
|
+
puts "=> Error #{response.code}:#{response.body}"
|
182
|
+
end
|
177
183
|
end
|
178
184
|
end
|
179
185
|
|
data/lib/cloudwalk/rake_task.rb
CHANGED
@@ -41,10 +41,12 @@ module Cloudwalk
|
|
41
41
|
desc "Compile posxml"
|
42
42
|
task :build do |t, args|
|
43
43
|
if path = ARGV[1..-1].first
|
44
|
+
FileUtils.mkdir_p self.out_path
|
44
45
|
xml, out = self.libs.zip(self.outs).find { |file, out| file == path }
|
45
46
|
|
46
47
|
posxml = Cloudwalk::CwFileJson.xml2posxml(out)
|
47
48
|
platform_call "cloudwalk compile -xml -o #{posxml} #{xml}"
|
49
|
+
print " [#{File.size(posxml)}]"
|
48
50
|
else
|
49
51
|
FileUtils.rm_rf self.out_path
|
50
52
|
FileUtils.mkdir_p self.out_path
|
@@ -52,6 +54,7 @@ module Cloudwalk
|
|
52
54
|
self.libs.zip(self.outs).each do |file, out|
|
53
55
|
posxml = Cloudwalk::CwFileJson.xml2posxml(out)
|
54
56
|
platform_call "cloudwalk compile -xml -o #{posxml} #{file}"
|
57
|
+
print " [#{File.size(posxml)}]"
|
55
58
|
end
|
56
59
|
end
|
57
60
|
end
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudwalk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thiago Scalone
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: CloudWalk CLI for posxml and ruby applications.
|
@@ -70,17 +70,17 @@ require_paths:
|
|
70
70
|
- lib
|
71
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 1.9.3
|
76
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
77
|
requirements:
|
78
|
-
- -
|
78
|
+
- - ">="
|
79
79
|
- !ruby/object:Gem::Version
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.6.12
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: CLI for Cloudwalk projects
|