screwcap 0.6.pre2 → 0.6.pre3
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/Manifest.txt +1 -0
- data/Rakefile +1 -1
- data/lib/screwcap/task.rb +1 -0
- data/lib/screwcap.rb +1 -1
- data/runrdoc +1 -0
- data/screwcap.gemspec +1 -1
- data/spec/task_manager_spec.rb +17 -0
- metadata +4 -3
data/Manifest.txt
CHANGED
data/Rakefile
CHANGED
@@ -11,7 +11,7 @@ Hoe.plugin :newgem
|
|
11
11
|
# Generate all the Rake tasks
|
12
12
|
# Run 'rake -T' to see list of generated tasks (from gem root directory)
|
13
13
|
$hoe = Hoe.spec 'screwcap' do
|
14
|
-
self.version = '0.6.
|
14
|
+
self.version = '0.6.pre3'
|
15
15
|
self.developer 'Grant Ammons', 'grant@pipelinedeals.com'
|
16
16
|
self.rubyforge_name = self.name # TODO this is default value
|
17
17
|
self.extra_deps = [['net-ssh','>= 2.0.23'],['net-ssh-gateway','>=1.0.1'], ['net-scp','>=1.0.4']]
|
data/lib/screwcap/task.rb
CHANGED
data/lib/screwcap.rb
CHANGED
data/runrdoc
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
rdoc -x trollop -x spec -x runner -x object -x message -x tasknotfound -x runrdoc
|
data/screwcap.gemspec
CHANGED
data/spec/task_manager_spec.rb
CHANGED
@@ -97,4 +97,21 @@ describe "Task Managers" do
|
|
97
97
|
commands[0][:command].should == "task1"
|
98
98
|
commands[1][:command].should == "task2"
|
99
99
|
end
|
100
|
+
|
101
|
+
it "command sets should retain global variables" do
|
102
|
+
@tm.animal = "monkey"
|
103
|
+
@tm.animal.should == "monkey"
|
104
|
+
@tm.server :server, :address => "test", :user => "root"
|
105
|
+
@tm.command_set(:pet_animal) { run "pet #{animal}" }
|
106
|
+
|
107
|
+
@tm.task(:pet_donkey, :server => :server) do
|
108
|
+
set :animal, "donkey"
|
109
|
+
pet_animal
|
110
|
+
end
|
111
|
+
@tm.task(:pet_global, :server => :server) do
|
112
|
+
pet_animal
|
113
|
+
end
|
114
|
+
|
115
|
+
@tm.run!([:pet_donkey, :pet_global]).map {|c| c[:command] }.should == ["pet donkey","pet monkey"]
|
116
|
+
end
|
100
117
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: screwcap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -1876988234
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- pre3
|
10
|
+
version: 0.6.pre3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Grant Ammons
|
@@ -125,6 +125,7 @@ files:
|
|
125
125
|
- lib/screwcap/task_manager.rb
|
126
126
|
- lib/trollop.rb
|
127
127
|
- recipes/setup_rails.rb
|
128
|
+
- runrdoc
|
128
129
|
- screwcap.gemspec
|
129
130
|
- spec/runner_spec.rb
|
130
131
|
- spec/sequence_spec.rb
|