volley 0.1.0.alpha4 → 0.1.0.alpha5

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.
Files changed (48) hide show
  1. data/.gitignore +3 -1
  2. data/.rspec +1 -0
  3. data/Gemfile +4 -1
  4. data/Rakefile +34 -0
  5. data/bin/volley +88 -40
  6. data/conf/common.volleyfile +12 -29
  7. data/features/publisher.feature +45 -0
  8. data/features/step_definitions/common_steps.rb +9 -0
  9. data/features/step_definitions/publisher_steps.rb +92 -0
  10. data/features/support/env.rb +19 -0
  11. data/init/Volleyfile +1 -104
  12. data/lib/volley/descriptor.rb +28 -0
  13. data/lib/volley/dsl/action.rb +31 -0
  14. data/lib/volley/dsl/argument.rb +96 -0
  15. data/lib/volley/dsl/file.rb +70 -0
  16. data/lib/volley/dsl/plan.rb +110 -235
  17. data/lib/volley/dsl/project.rb +10 -2
  18. data/lib/volley/dsl/pull_action.rb +50 -0
  19. data/lib/volley/dsl/push_action.rb +101 -0
  20. data/lib/volley/dsl/stage.rb +40 -0
  21. data/lib/volley/dsl.rb +7 -0
  22. data/lib/volley/log.rb +22 -8
  23. data/lib/volley/meta.rb +24 -0
  24. data/lib/volley/publisher/amazons3.rb +67 -66
  25. data/lib/volley/publisher/base.rb +81 -42
  26. data/lib/volley/publisher/exceptions.rb +7 -0
  27. data/lib/volley/publisher/local.rb +41 -27
  28. data/lib/volley/scm/base.rb +10 -0
  29. data/lib/volley.rb +38 -12
  30. data/spec/descriptor_spec.rb +39 -0
  31. data/spec/dsl_plan_spec.rb +103 -0
  32. data/spec/dsl_project_spec.rb +36 -0
  33. data/spec/dsl_volleyfile_spec.rb +21 -0
  34. data/spec/meta_spec.rb +26 -0
  35. data/spec/publisher_spec.rb +92 -0
  36. data/test/dsl/amazons3_publisher.volleyfile +6 -0
  37. data/test/dsl/local_publisher.volleyfile +4 -0
  38. data/test/dsl/log_console.volleyfile +2 -0
  39. data/test/dsl/log_file.volleyfile +2 -0
  40. data/test/dsl/simple.volleyfile +17 -0
  41. data/test/meta.yml +3 -0
  42. data/test/project/Rakefile +13 -0
  43. data/test/project/Volleyfile +18 -0
  44. data/test/trunk-1.tgz +0 -0
  45. data/volley.gemspec +2 -1
  46. metadata +67 -5
  47. data/lib/volley/config.rb +0 -8
  48. data/lib/volley/volley_file.rb +0 -45
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.alpha4
4
+ version: 0.1.0.alpha5
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-26 00:00:00.000000000 Z
12
+ date: 2012-08-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: clamp
@@ -91,6 +91,22 @@ dependencies:
91
91
  - - ! '>='
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: docopt
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
94
110
  description: PubSub Deployment tool
95
111
  email:
96
112
  - scatanzarite@gmail.com
@@ -100,28 +116,55 @@ extensions: []
100
116
  extra_rdoc_files: []
101
117
  files:
102
118
  - .gitignore
119
+ - .rspec
103
120
  - Gemfile
104
121
  - LICENSE
105
122
  - README.md
106
123
  - Rakefile
107
124
  - bin/volley
108
125
  - conf/common.volleyfile
126
+ - features/publisher.feature
127
+ - features/step_definitions/common_steps.rb
128
+ - features/step_definitions/publisher_steps.rb
129
+ - features/support/env.rb
109
130
  - init/Volleyfile
110
131
  - lib/volley.rb
111
- - lib/volley/config.rb
132
+ - lib/volley/descriptor.rb
112
133
  - lib/volley/dsl.rb
134
+ - lib/volley/dsl/action.rb
135
+ - lib/volley/dsl/argument.rb
136
+ - lib/volley/dsl/file.rb
113
137
  - lib/volley/dsl/plan.rb
114
138
  - lib/volley/dsl/project.rb
115
139
  - lib/volley/dsl/publisher.rb
140
+ - lib/volley/dsl/pull_action.rb
141
+ - lib/volley/dsl/push_action.rb
142
+ - lib/volley/dsl/stage.rb
116
143
  - lib/volley/log.rb
144
+ - lib/volley/meta.rb
117
145
  - lib/volley/publisher/amazons3.rb
118
146
  - lib/volley/publisher/base.rb
147
+ - lib/volley/publisher/exceptions.rb
119
148
  - lib/volley/publisher/local.rb
120
149
  - lib/volley/scm/base.rb
121
150
  - lib/volley/scm/git.rb
122
151
  - lib/volley/scm/subversion.rb
123
152
  - lib/volley/version.rb
124
- - lib/volley/volley_file.rb
153
+ - spec/descriptor_spec.rb
154
+ - spec/dsl_plan_spec.rb
155
+ - spec/dsl_project_spec.rb
156
+ - spec/dsl_volleyfile_spec.rb
157
+ - spec/meta_spec.rb
158
+ - spec/publisher_spec.rb
159
+ - test/dsl/amazons3_publisher.volleyfile
160
+ - test/dsl/local_publisher.volleyfile
161
+ - test/dsl/log_console.volleyfile
162
+ - test/dsl/log_file.volleyfile
163
+ - test/dsl/simple.volleyfile
164
+ - test/meta.yml
165
+ - test/project/Rakefile
166
+ - test/project/Volleyfile
167
+ - test/trunk-1.tgz
125
168
  - volley.gemspec
126
169
  homepage: http://github.com/shawncatz/volley
127
170
  licenses: []
@@ -147,5 +190,24 @@ rubygems_version: 1.8.21
147
190
  signing_key:
148
191
  specification_version: 3
149
192
  summary: PubSub Deployment tool
150
- test_files: []
193
+ test_files:
194
+ - features/publisher.feature
195
+ - features/step_definitions/common_steps.rb
196
+ - features/step_definitions/publisher_steps.rb
197
+ - features/support/env.rb
198
+ - spec/descriptor_spec.rb
199
+ - spec/dsl_plan_spec.rb
200
+ - spec/dsl_project_spec.rb
201
+ - spec/dsl_volleyfile_spec.rb
202
+ - spec/meta_spec.rb
203
+ - spec/publisher_spec.rb
204
+ - test/dsl/amazons3_publisher.volleyfile
205
+ - test/dsl/local_publisher.volleyfile
206
+ - test/dsl/log_console.volleyfile
207
+ - test/dsl/log_file.volleyfile
208
+ - test/dsl/simple.volleyfile
209
+ - test/meta.yml
210
+ - test/project/Rakefile
211
+ - test/project/Volleyfile
212
+ - test/trunk-1.tgz
151
213
  has_rdoc:
data/lib/volley/config.rb DELETED
@@ -1,8 +0,0 @@
1
-
2
- module Volley
3
- class << self
4
- def config
5
- @config ||= OpenStruct.new({})
6
- end
7
- end
8
- end
@@ -1,45 +0,0 @@
1
- module Volley
2
- module VolleyFile
3
- class << self
4
- def init
5
- @loaded = {}
6
- ["~/.Volleyfile", "/etc/Volleyfile", "../../../conf/common.volleyfile"].each do |f|
7
- file = File.expand_path(f, __FILE__)
8
- @loaded[file] ||= load(file, :optional => true)
9
- end
10
- end
11
-
12
- def load(filename, options={ })
13
- Volley::Log.debug "LOAD: #{filename} #{options.inspect}"
14
- @projects ||= { }
15
- file = File.expand_path(filename)
16
- config.volleyfile = file if options[:primary]
17
-
18
- if File.file?(file)
19
- @loaded[file] ||= instance_eval(File.read(file), file)
20
- else
21
- raise "cannot read file" unless options[:optional]
22
- end
23
- end
24
-
25
- def config
26
- Volley.config
27
- end
28
-
29
- # TOP LEVEL DSL METHODS
30
-
31
- def project(name, o={}, &block)
32
- Volley::Log.debug "project: #{name}"
33
- Volley::Dsl::Project.project(name, o, &block)
34
- end
35
-
36
- def publisher(name, o={}, &block)
37
- Volley::Dsl::Publisher.publisher(name, o, &block)
38
- end
39
-
40
- def log(level, dest)
41
- Volley::Log.add(level, dest)
42
- end
43
- end
44
- end
45
- end