cloudwalk 0.7.1 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 441a4cccbd7396b4c620ff855577b43e390199e5
4
- data.tar.gz: 651c9dee8d40641f5eda4cdb64f4c8aa9f6bcf1c
3
+ metadata.gz: 08589e22da773ff63286facbc65dba57680b1567
4
+ data.tar.gz: 60422defe8ed5000fe0f722a4f4397dbc4856a9a
5
5
  SHA512:
6
- metadata.gz: 2217ab13526d6f6cf6b8ad941a8fa6a411feb9f211a2e7606af63abacb8b63a25258e50724f356a5e6e46a869cc50e3e01093dfecf1e853dc3a217038fe43648
7
- data.tar.gz: 793d074fb7c6f84c3813758cf21986b4d589cd3871b3315b11fcb537955a4948065f458c84d4ca1cdcdab1b7386dc625b532c4d3db10b14defb6fe4abebba4ab
6
+ metadata.gz: 8b72a0be07c4d5b1adaf6f46be449a2b5ee988d0113b9f8fe657ceb586b0f7f376db90c069edc42c058ba809d176d31efa4507f08515c04f7234442c90109d9e
7
+ data.tar.gz: f4eadeed9e073cca6c5edc8d1af110a8b4fc856dcff4fc8cbceeaa67c4127895db6f6fb30f8c9bd1a8a9848b8ccc18845cee5ecd0ac04d2d511418e77abf677e
data/bin/cloudwalk CHANGED
@@ -1,14 +1,21 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- platforms = {
4
- "i386-darwain" => "i386-apple-darwin14",
5
- "i686-linux" => "i686-pc-linux-gnu",
6
- "i686-mingw32" => "i686-w64-mingw32.exe",
7
- "x86_64-darwin" => "x86_64-apple-darwin14",
8
- "x86_64-linux" => "x86_64-pc-linux-gnu",
9
- "x86_64-mingw32" => "x86_64-w64-mingw32.exe"
10
- }
3
+ def cli_executable
4
+ if (/mswin|mingw|win32/ =~ RUBY_PLATFORM) && RUBY_PLATFORM.include?("64")
5
+ "x86_64-w64-mingw32.exe"
6
+ elsif (/mswin|mingw|win32/ =~ RUBY_PLATFORM) && RUBY_PLATFORM.include?("32")
7
+ "i686-w64-mingw32.exe"
8
+ elsif (/darwin/ =~ RUBY_PLATFORM) && RUBY_PLATFORM.include?("32")
9
+ "i386-apple-darwin14"
10
+ elsif (/darwin/ =~ RUBY_PLATFORM) && RUBY_PLATFORM.include?("64")
11
+ "x86_64-apple-darwin14"
12
+ else
13
+ if RUBY_PLATFORM.include?("64")
14
+ "x86_64-pc-linux-gnu"
15
+ else
16
+ "i686-pc-linux-gnu"
17
+ end
18
+ end
19
+ end
11
20
 
12
- executable = platforms["#{`uname -m`.chomp}-#{`uname -s`.chomp.downcase}"]
13
-
14
- system("#{File.dirname(File.realpath(__FILE__))}/../exe/#{executable}", *ARGV)
21
+ system("#{File.dirname(File.realpath(__FILE__))}/../exe/#{cli_executable}", *ARGV)
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
data/lib/cloudwalk.rb CHANGED
@@ -8,6 +8,7 @@ require_relative "cloudwalk/manager_helper"
8
8
  require_relative "cloudwalk/config"
9
9
  require_relative "cloudwalk/cw_file_json"
10
10
  require_relative "cloudwalk/deploy"
11
+ require_relative "cloudwalk/deploy_exception"
11
12
  require_relative "cloudwalk/posxml/posxml_application"
12
13
  require_relative "cloudwalk/posxml/posxml_version"
13
14
  require_relative "cloudwalk/posxml/rake_task"
@@ -25,7 +25,7 @@ module Cloudwalk
25
25
 
26
26
  unless app_lock
27
27
  # TODO Improve!
28
- raise DeployException.new("application or module #{path} not found in Manager, please create it")
28
+ raise Cloudwalk::DeployException.new("application or module #{path} not found in Manager, please create it")
29
29
  end
30
30
 
31
31
  app_cwfile = self.cwfile["apps"].find {|config| config["name"] == posxml2xml(posxml) }
@@ -42,7 +42,7 @@ module Cloudwalk
42
42
  end
43
43
 
44
44
  def name
45
- self.cwfile["name"]
45
+ self.cwfile["name"]
46
46
  end
47
47
 
48
48
  def ruby
@@ -54,7 +54,7 @@ module Cloudwalk
54
54
 
55
55
  unless app_lock
56
56
  # TODO Improve!
57
- raise DeployException.new("application #{self.name} not found at Manager, please create it")
57
+ raise Cloudwalk::DeployException.new("application #{self.name} not found at Manager, please create it")
58
58
  end
59
59
 
60
60
  ret, response = Cloudwalk::Ruby::RubyApplication.update(
@@ -66,7 +66,7 @@ module Cloudwalk
66
66
  STDOUT.write("\r=> Error #{response.code}:#{response.body}\n")
67
67
  end
68
68
  else
69
- raise DeployException.new("application package #{zip} not found")
69
+ raise Cloudwalk::DeployException.new("application package #{zip} not found")
70
70
  end
71
71
  end
72
72
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudwalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.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-08-29 00:00:00.000000000 Z
11
+ date: 2017-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake