volley 0.1.0.alpha6 → 0.1.0.alpha7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/volley.rb CHANGED
@@ -30,14 +30,17 @@ module Volley
30
30
  end
31
31
 
32
32
  def process(opts)
33
- project = nil
34
33
  plan = opts[:plan]
35
34
  args = opts[:args] || []
36
35
  desc = opts[:descriptor]
37
36
  second = opts[:second]
38
37
 
38
+ project = nil
39
+ branch = nil
40
+ version = nil
41
+
39
42
  (project, plan) = plan.split(/:/) if plan =~ /\:/
40
- (project, _, _) = Volley::Descriptor.new(desc).get unless project
43
+ (project, branch, version) = Volley::Descriptor.new(desc).get unless project
41
44
 
42
45
  begin
43
46
  Volley::Log.debug "PROCESS plan:#{plan} descriptor:#{desc} args:#{args}"
@@ -47,8 +50,6 @@ module Volley
47
50
  if pr.plan?(plan)
48
51
  # plan is defined
49
52
  pl = pr.plan(plan)
50
- #args << "branch:#{branch}" if branch && args.select{|e| e =~ /^branch\:/}.count == 0
51
- #args << "version:#{version}" if version && args.select{|e| e =~ /^version\:/}.count == 0
52
53
  args << "descriptor=#{desc}"
53
54
  data = pl.call(:args => args)
54
55
 
@@ -65,8 +66,8 @@ module Volley
65
66
  # we dont have the project locally, search the publisher
66
67
  pub = Volley::Dsl.publisher
67
68
  if pub
68
- if pub.projects.include?(project)
69
- vf = pub.volleyfile(opts)
69
+ if pub.projects.include?(project) && branch
70
+ vf = pub.volleyfile(project, branch, version)
70
71
  Volley::Log.debug "downloaded volleyfile: #{vf}"
71
72
  Volley::Dsl::VolleyFile.load(vf)
72
73
  process(:project => project, :plan => plan, :branch => branch, :version => version, :args => args, :second => true)
@@ -82,10 +83,6 @@ module Volley
82
83
  Volley::Log.debug e
83
84
  raise e
84
85
  end
85
-
86
- #if Volley.config.debug
87
- # ap Volley::Dsl::Project.project
88
- #end
89
86
  end
90
87
  end
91
88
  end
@@ -12,7 +12,7 @@ project :test do
12
12
 
13
13
  plan :deploy do
14
14
  pull do |dir|
15
- File.read("#{dir}/file")
15
+ Volley::Log.info File.read("#{dir}/file")
16
16
  end
17
17
  end
18
18
  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}.alpha6"
16
+ gem.version = "#{Volley::Version::STRING}.alpha7"
17
17
 
18
18
  gem.add_dependency "clamp"
19
19
  gem.add_dependency "fog"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: volley
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.alpha6
4
+ version: 0.1.0.alpha7
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors: