lachlan-sprinkle 0.0.11 → 0.0.13

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/CREDITS CHANGED
@@ -19,3 +19,4 @@ Jorgen Orehøj Erichsen (http://blog.erichsen.net)
19
19
  Joshua Sierles (http://diluvia.net)
20
20
  Julian Russell (http://github.com/plusplus)
21
21
  Dave (Gassto) (http://github.com/gassto)
22
+ Bodaniel Jeanes (http://bjeanes.github.com)
@@ -25,8 +25,15 @@ module Sprinkle
25
25
  @config = ::Capistrano::Configuration.new
26
26
  @config.logger.level = Sprinkle::OPTIONS[:verbose] ? ::Capistrano::Logger::INFO : ::Capistrano::Logger::IMPORTANT
27
27
  @config.set(:password) { ::Capistrano::CLI.password_prompt }
28
+
29
+ @config.set(:_sprinkle_actor, self)
30
+
31
+ def @config.recipes(script)
32
+ _sprinkle_actor.recipes(script)
33
+ end
34
+
28
35
  if block
29
- self.instance_eval &block
36
+ @config.instance_eval &block
30
37
  else
31
38
  @config.load 'deploy' # normally in the config directory for rails
32
39
  end
@@ -1,7 +1,11 @@
1
1
  class Symbol #:nodoc:
2
-
2
+ include Comparable
3
+
3
4
  def to_task_name
4
5
  to_s.to_task_name
5
6
  end
6
-
7
+
8
+ def <=>(other)
9
+ self.to_s <=> other.to_s
10
+ end
7
11
  end
@@ -123,6 +123,7 @@ module Sprinkle
123
123
  end
124
124
  packages = selected
125
125
  end
126
+ packages.sort! if packages
126
127
  packages
127
128
  end
128
129
 
@@ -74,7 +74,7 @@ module Sprinkle
74
74
 
75
75
  cloud_info "--> Cloud hierarchy for policy #{@name}"
76
76
 
77
- @packages.each do |p|
77
+ @packages.sort.each do |p|
78
78
  cloud_info "\nPolicy #{@name} requires package #{p}"
79
79
 
80
80
  list = Sprinkle::Package.find(p)
@@ -102,7 +102,7 @@ module Sprinkle
102
102
 
103
103
  def normalize(all, &block)
104
104
  all = all.flatten.uniq
105
- cloud_info "\nNormalized installation order for all packages: #{all.map(&:to_s).join(', ')}"
105
+ cloud_info "\n--> Normalized installation order for all packages:\n#{HighLine.new.list(all.map(&:to_s), :columns_across)}"
106
106
  all.each &block
107
107
  end
108
108
  end
@@ -2,7 +2,7 @@ module Sprinkle #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 11
5
+ TINY = 13
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{sprinkle}
3
- s.version = "0.0.11"
3
+ s.version = "0.0.13"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Marcus Crafter", "Mitchell Hashimoto"]
7
- s.date = %q{2009-04-01}
7
+ s.date = %q{2009-04-08}
8
8
  s.default_executable = %q{sprinkle}
9
9
  s.description = %q{Ruby DSL based software provisioning tool}
10
10
  s.email = ["crafterm@redartisan.com", "mitchell.hashimoto@citrusbyte.com"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lachlan-sprinkle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcus Crafter
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-04-01 00:00:00 -07:00
13
+ date: 2009-04-08 00:00:00 -07:00
14
14
  default_executable: sprinkle
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency