marionetta 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,20 +1,22 @@
1
1
  module Marionetta
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  DESCRIPTION = 'For lightweight puppet mastery. Organise
4
4
  multiple machines via rsync and SSH rather
5
5
  than using puppet master'
6
6
 
7
7
  def self.default_server()
8
8
  {
9
+ :logger => Logger.new($stdout),
10
+
9
11
  :ssh => {
10
12
  :command => 'ssh',
11
13
  :flags => [],
12
14
  },
15
+
13
16
  :rsync => {
14
17
  :command => 'rsync',
15
18
  :flags => ["-azP", "--delete"],
16
19
  },
17
- :logger => Logger.new($stdout),
18
20
 
19
21
  :debloyer => {
20
22
  :name => 'debloyer',
@@ -25,7 +25,7 @@ module Marionetta
25
25
  def install_group_tasks_for(group)
26
26
  Manipulators.all.each do |manipulator_name, manipulator_class|
27
27
  manipulator_class.tasks.each do |method_name|
28
- desc("#{method_name} #{manipulator_name} on #{group.name} (marionetta)")
28
+ desc(task_desc(group, manipulator_name, method_name))
29
29
  task(task_name(group, manipulator_name, method_name)) do
30
30
  group.manipulate_each_server(manipulator_name, method_name)
31
31
  end
@@ -38,7 +38,11 @@ module Marionetta
38
38
  raise 'Group must be named'
39
39
  end
40
40
 
41
- return "#{group.name}:#{manipulator_name}:#{method_name}"
41
+ return "#{manipulator_name}:#{group.name}:#{method_name}"
42
+ end
43
+
44
+ def task_desc(group, manipulator_name, method_name)
45
+ "#{method_name} #{manipulator_name} on #{group.name} (marionetta)"
42
46
  end
43
47
  end
44
48
  end
@@ -9,7 +9,7 @@ describe Marionetta::RakeHelper do
9
9
  Marionetta::RakeHelper.new(vagrant).install_group_tasks
10
10
  Rake::Task.tasks.count.should > 0
11
11
 
12
- Rake::Task['vagrant:puppet:update'].invoke
13
- Rake::Task['vagrant:debloyer:deploy'].invoke
12
+ Rake::Task['puppet:vagrant:update'].invoke
13
+ Rake::Task['debloyer:vagrant:deploy'].invoke
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: marionetta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: