marionetta 0.1.7 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
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
- task :default => :spec
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
@@ -1,5 +1,5 @@
1
1
  module Marionetta
2
- VERSION = '0.1.7'
2
+ VERSION = '0.1.9'
3
3
  DESCRIPTION = 'For lightweight puppet mastery. Organise
4
4
  multiple machines via rsync and SSH rather
5
5
  than using puppet master'
@@ -2,6 +2,6 @@ require 'marionetta/manipulators'
2
2
 
3
3
  describe Marionetta::Manipulators do
4
4
  it 'should maintain a list of manipulators' do
5
- Marionetta::Manipulators.all
5
+ Marionetta::Manipulators.all.count.should > 0
6
6
  end
7
7
  end
@@ -5,5 +5,6 @@ describe Marionetta::RakeHelper do
5
5
  it 'should install rake tasks' do
6
6
  group = Marionetta::Group.new(:staging)
7
7
  Marionetta::RakeHelper.new(group).install_group_tasks
8
+ Rake::Task.tasks.count.should > 0
8
9
  end
9
10
  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.1.7
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: