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 +3 -3
- data/lib/marionetta/rake_helper.rb +2 -2
- data/lib/marionetta.rb +1 -1
- metadata +1 -1
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
|
-
|
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