marionetta 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ require 'marionetta'
8
8
 
9
9
  task(:default => :spec)
10
10
 
11
- task(:gem) do
11
+ task(:gem => :spec) do
12
12
  cmd = [
13
13
  'git add -A',
14
14
  'git stash',
@@ -23,7 +23,7 @@ task(:publish => :gem) do
23
23
  version = Marionetta::VERSION
24
24
  git_tag = "v#{version}"
25
25
 
26
- if `git tag -l #{git_tag}`
26
+ unless `git tag -l #{git_tag}`.empty?
27
27
  raise 'Version tag already released.'
28
28
  end
29
29
 
@@ -32,7 +32,7 @@ task(:publish => :gem) do
32
32
  "git push origin develop develop:master #{git_tag}",
33
33
  "gem push marionetta-#{version}.gem",
34
34
  ]
35
- system(cmd.join(' '))
35
+ system(cmd.join(' && '))
36
36
  end
37
37
 
38
38
  task(:clean) do
@@ -25,14 +25,14 @@ module Marionetta
25
25
  Manipulators.all.each do |manipulator_name, manipulator_class|
26
26
  manipulator_class.tasks.each do |method_name|
27
27
  desc("#{manipulator_name} #{method_name} (marionetta)")
28
- task(task_name(manipulator_name, method_name)) do
28
+ task(task_name(group, manipulator_name, method_name)) do
29
29
  group.manipulate_each_server(manipulator_name, method_name)
30
30
  end
31
31
  end
32
32
  end
33
33
  end
34
34
 
35
- def task_name(manipulator_name, method_name)
35
+ def task_name(group, manipulator_name, method_name)
36
36
  unless group.name
37
37
  raise 'Group must be named'
38
38
  end
data/lib/marionetta.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Marionetta
2
- VERSION = '0.1.9'
2
+ VERSION = '0.1.10'
3
3
  DESCRIPTION = 'For lightweight puppet mastery. Organise
4
4
  multiple machines via rsync and SSH rather
5
5
  than using puppet master'
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.1.9
4
+ version: 0.1.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: