volley 0.1.0.alpha8 → 0.1.0.alpha9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/volley/descriptor.rb +7 -0
- data/lib/volley/meta.rb +0 -2
- data/lib/volley.rb +2 -1
- data/volley.gemspec +1 -1
- metadata +1 -1
data/lib/volley/descriptor.rb
CHANGED
@@ -13,6 +13,9 @@ module Volley
|
|
13
13
|
raise "error parsing descriptor: #{desc}" if (list.count < 2 || list.count > 3) && !@options[:partial]
|
14
14
|
(@project, @branch, @version) = list
|
15
15
|
@version ||= "latest"
|
16
|
+
#if @version.nil? || @version == "latest"
|
17
|
+
# @version = Volley.publisher.latest(@project, @branch).split("/").last || nil rescue nil
|
18
|
+
#end
|
16
19
|
raise "error parsing descriptor: #{desc}" unless (@project && @branch && @version) || @options[:partial]
|
17
20
|
end
|
18
21
|
end
|
@@ -24,5 +27,9 @@ module Volley
|
|
24
27
|
def ==(other)
|
25
28
|
@project == other.project && @branch == other.branch && @version == other.version
|
26
29
|
end
|
30
|
+
|
31
|
+
def to_s
|
32
|
+
"#@project@#@branch#{":#@version" unless @version == "latest"}"
|
33
|
+
end
|
27
34
|
end
|
28
35
|
end
|
data/lib/volley/meta.rb
CHANGED
@@ -2,11 +2,9 @@
|
|
2
2
|
module Volley
|
3
3
|
class Meta
|
4
4
|
def initialize(file="#{Volley.config.directory}/meta.yaml")
|
5
|
-
Volley::Log.info "meta: #{file}"
|
6
5
|
@file = file
|
7
6
|
raise "file does not exist" unless File.file?(@file)
|
8
7
|
@data = YAML.load_file(@file)
|
9
|
-
Volley::Log.info "#{@data.inspect}"
|
10
8
|
end
|
11
9
|
|
12
10
|
def [](project)
|
data/lib/volley.rb
CHANGED
@@ -65,9 +65,10 @@ module Volley
|
|
65
65
|
if pub
|
66
66
|
if pub.projects.include?(project) && branch
|
67
67
|
vf = pub.volleyfile(project, branch, version)
|
68
|
+
version = pub.latest(project, branch).split("/").last if version.nil? || version == "latest"
|
68
69
|
Volley::Log.debug "downloaded volleyfile: #{vf}"
|
69
70
|
Volley::Dsl::VolleyFile.load(vf)
|
70
|
-
process(:plan => plan, :
|
71
|
+
process(:plan => "#{project}:#{plan}", :descriptor => "#{project}@#{branch}:#{version}", :args => args, :second => true)
|
71
72
|
else
|
72
73
|
raise "project #{project} does not exist in configured publisher #{pub.class}"
|
73
74
|
end
|
data/volley.gemspec
CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.name = "volley"
|
15
15
|
gem.require_paths = ["lib"]
|
16
|
-
gem.version = "#{Volley::Version::STRING}.
|
16
|
+
gem.version = "#{Volley::Version::STRING}.alpha9"
|
17
17
|
|
18
18
|
gem.add_dependency "clamp"
|
19
19
|
gem.add_dependency "fog"
|