marionetta 0.1.7 → 0.1.9
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/Rakefile +34 -1
- data/lib/marionetta/rake_helper.rb +1 -0
- data/lib/marionetta.rb +1 -1
- data/spec/marionetta_manipulators_spec.rb +1 -1
- data/spec/marionetta_rake_helper_spec.rb +1 -0
- metadata +1 -1
data/Rakefile
CHANGED
@@ -4,4 +4,37 @@ Bundler::GemHelper.install_tasks
|
|
4
4
|
require 'rspec/core/rake_task'
|
5
5
|
RSpec::Core::RakeTask.new(:spec)
|
6
6
|
|
7
|
-
|
7
|
+
require 'marionetta'
|
8
|
+
|
9
|
+
task(:default => :spec)
|
10
|
+
|
11
|
+
task(:gem) do
|
12
|
+
cmd = [
|
13
|
+
'git add -A',
|
14
|
+
'git stash',
|
15
|
+
'gem build marionetta.gemspec',
|
16
|
+
'git stash pop',
|
17
|
+
'git reset',
|
18
|
+
]
|
19
|
+
system(cmd.join(' && '))
|
20
|
+
end
|
21
|
+
|
22
|
+
task(:publish => :gem) do
|
23
|
+
version = Marionetta::VERSION
|
24
|
+
git_tag = "v#{version}"
|
25
|
+
|
26
|
+
if `git tag -l #{git_tag}`
|
27
|
+
raise 'Version tag already released.'
|
28
|
+
end
|
29
|
+
|
30
|
+
cmd = [
|
31
|
+
"git tag #{git_tag}",
|
32
|
+
"git push origin develop develop:master #{git_tag}",
|
33
|
+
"gem push marionetta-#{version}.gem",
|
34
|
+
]
|
35
|
+
system(cmd.join(' '))
|
36
|
+
end
|
37
|
+
|
38
|
+
task(:clean) do
|
39
|
+
system('rm -rf *.gem')
|
40
|
+
end
|
@@ -24,6 +24,7 @@ module Marionetta
|
|
24
24
|
def install_group_tasks_for(group)
|
25
25
|
Manipulators.all.each do |manipulator_name, manipulator_class|
|
26
26
|
manipulator_class.tasks.each do |method_name|
|
27
|
+
desc("#{manipulator_name} #{method_name} (marionetta)")
|
27
28
|
task(task_name(manipulator_name, method_name)) do
|
28
29
|
group.manipulate_each_server(manipulator_name, method_name)
|
29
30
|
end
|
data/lib/marionetta.rb
CHANGED