ubalo 0.26 → 0.27

Sign up to get free protection for your applications and to get access to all the features.
data/bin/ubalo CHANGED
@@ -193,10 +193,8 @@ end
193
193
  desc 'Run a pod'
194
194
  command :run do |c|
195
195
  c.flag :arg
196
- c.switch :v2
197
-
198
196
  c.action do |global_options,options,args|
199
- task = pod.run(options.v2 || pod_dir.v2?, args, options.arg)
197
+ task = pod.run(args, options.arg)
200
198
  task.tail_process
201
199
  end
202
200
  end
@@ -221,7 +219,7 @@ command :submit do |c|
221
219
  c.flag :arg
222
220
 
223
221
  c.action do |global_options,options,args|
224
- task = pod.run(pod_dir.v2?, args, options.arg)
222
+ task = pod.run(args, options.arg)
225
223
  puts task.printable_result
226
224
  end
227
225
  end
@@ -290,11 +288,10 @@ end
290
288
  desc 'Push files and run'
291
289
  command 'push-run' do |c|
292
290
  c.flag :arg
293
- c.switch :v2
294
291
 
295
292
  c.action do |global_options,options,args|
296
293
  pod.push_from(pod_dir)
297
- task = pod.run(options.v2 || pod_dir.v2?, args, options.arg)
294
+ task = pod.run(args, options.arg)
298
295
  task.tail_process
299
296
  end
300
297
  end
data/lib/ubalo/pod.rb CHANGED
@@ -37,14 +37,9 @@ module Ubalo
37
37
  end
38
38
  end
39
39
 
40
- def run(version2, argv, arg)
41
- if version2
42
- if argv.empty?
43
- raise Ubalo::Error, "Specify the command to run"
44
- end
45
- else
46
- arg = argv.shift || arg
47
- argv = ["sh", "run.sh"]
40
+ def run(argv, arg)
41
+ if argv.empty?
42
+ raise Ubalo::Error, "Specify the command to run"
48
43
  end
49
44
 
50
45
  params = {
data/lib/ubalo/pod_dir.rb CHANGED
@@ -10,10 +10,6 @@ module Ubalo
10
10
  @path = File.expand_path(path)
11
11
  end
12
12
 
13
- def v2?
14
- inited? && manifest.include?(".ubalov2")
15
- end
16
-
17
13
  def inited?
18
14
  in_path do
19
15
  File.exist?("Ubalopod")
data/lib/ubalo/version.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Ubalo
2
2
  unless const_defined?('VERSION')
3
- VERSION = "0.26"
3
+ VERSION = "0.27"
4
4
  end
5
5
 
6
6
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ubalo
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.26'
4
+ version: '0.27'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-06-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gli
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &70317565974000 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,15 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
24
+ version_requirements: *70317565974000
30
25
  - !ruby/object:Gem::Dependency
31
26
  name: highline
32
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &70317565973120 !ruby/object:Gem::Requirement
33
28
  none: false
34
29
  requirements:
35
30
  - - ! '>='
@@ -37,15 +32,10 @@ dependencies:
37
32
  version: '0'
38
33
  type: :runtime
39
34
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
35
+ version_requirements: *70317565973120
46
36
  - !ruby/object:Gem::Dependency
47
37
  name: json
48
- requirement: !ruby/object:Gem::Requirement
38
+ requirement: &70317565971700 !ruby/object:Gem::Requirement
49
39
  none: false
50
40
  requirements:
51
41
  - - ! '>='
@@ -53,15 +43,10 @@ dependencies:
53
43
  version: '0'
54
44
  type: :runtime
55
45
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
46
+ version_requirements: *70317565971700
62
47
  - !ruby/object:Gem::Dependency
63
48
  name: rest-client
64
- requirement: !ruby/object:Gem::Requirement
49
+ requirement: &70317565970480 !ruby/object:Gem::Requirement
65
50
  none: false
66
51
  requirements:
67
52
  - - ~>
@@ -69,15 +54,10 @@ dependencies:
69
54
  version: 1.6.3
70
55
  type: :runtime
71
56
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
- requirements:
75
- - - ~>
76
- - !ruby/object:Gem::Version
77
- version: 1.6.3
57
+ version_requirements: *70317565970480
78
58
  - !ruby/object:Gem::Dependency
79
59
  name: archive-tar-minitar
80
- requirement: !ruby/object:Gem::Requirement
60
+ requirement: &70317565969920 !ruby/object:Gem::Requirement
81
61
  none: false
82
62
  requirements:
83
63
  - - ! '>='
@@ -85,15 +65,10 @@ dependencies:
85
65
  version: '0'
86
66
  type: :runtime
87
67
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ! '>='
92
- - !ruby/object:Gem::Version
93
- version: '0'
68
+ version_requirements: *70317565969920
94
69
  - !ruby/object:Gem::Dependency
95
70
  name: launchy
96
- requirement: !ruby/object:Gem::Requirement
71
+ requirement: &70317565968060 !ruby/object:Gem::Requirement
97
72
  none: false
98
73
  requirements:
99
74
  - - ! '>='
@@ -101,12 +76,7 @@ dependencies:
101
76
  version: '0'
102
77
  type: :runtime
103
78
  prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ! '>='
108
- - !ruby/object:Gem::Version
109
- version: '0'
79
+ version_requirements: *70317565968060
110
80
  description: CLI and API client for Ubalo
111
81
  email: dev@ubalo.com
112
82
  executables:
@@ -148,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
148
118
  version: '0'
149
119
  requirements: []
150
120
  rubyforge_project:
151
- rubygems_version: 1.8.23
121
+ rubygems_version: 1.8.11
152
122
  signing_key:
153
123
  specification_version: 3
154
124
  summary: CLI and API client for Ubalo