screwcap 0.3.3 → 0.3.4
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/README.rdoc +7 -7
- data/Rakefile +1 -1
- data/TODO +1 -0
- data/lib/screwcap/runner.rb +2 -2
- data/lib/screwcap.rb +1 -1
- data/screwcap.gemspec +1 -1
- data/spec/task_spec.rb +1 -1
- metadata +5 -8
data/README.rdoc
CHANGED
@@ -4,17 +4,17 @@
|
|
4
4
|
|
5
5
|
== DESCRIPTION:
|
6
6
|
|
7
|
-
Screwcap is a library that wraps Net::SSH and makes it easy to perform actions on remote servers.
|
8
|
-
|
9
|
-
The most obvious task you could use screwcap for is deploying rails applications to remote servers.
|
7
|
+
Screwcap is a library that wraps Net::SSH and makes it easy to perform actions on remote servers.
|
10
8
|
|
11
9
|
== FEATURES:
|
12
10
|
|
13
|
-
*
|
14
|
-
|
15
|
-
|
11
|
+
* Dead-simple DSL for remote task management.
|
12
|
+
* Screwcap is not opinionated. In fact, the only opinion screwcap has is that rails deployment tasks should not be baked into the screwcap core.
|
13
|
+
* Screwcap is very light on magic and unicorns. Screwcap recipes are basically only a collection of servers and tasks. It does not know how to do things unless you tell it how to do things.
|
14
|
+
* Screwcap is not tied into rake, although it easily can be.
|
15
|
+
* Screwcap can *easily* be used to deploy rails applications.
|
16
16
|
|
17
|
-
|
17
|
+
For more info, see the main screwcap page at http://gammons.github.com/screwcap
|
18
18
|
|
19
19
|
== INSTALL:
|
20
20
|
|
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.3.
|
14
|
+
self.version = '0.3.4'
|
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/TODO
CHANGED
data/lib/screwcap/runner.rb
CHANGED
@@ -80,8 +80,8 @@ class Runner
|
|
80
80
|
if command[:type] == :remote
|
81
81
|
log " I: (#{address}): #{command[:command]}\n", :color => :green
|
82
82
|
stdout, stderr, exit_code, exit_signal = ssh_exec! ssh, command[:command]
|
83
|
-
log(" O: (#{address}): #{stdout}", :color => :green) unless stdout.nil?
|
84
|
-
errorlog(" O: (#{address}): #{stderr}", :color => :red) unless stderr.nil?
|
83
|
+
log(" O: (#{address}): #{stdout}", :color => :green) unless stdout.nil? or stdout == ""
|
84
|
+
errorlog(" O: (#{address}): #{stderr}", :color => :red) unless stderr.nil? or stderr == ""
|
85
85
|
errorlog(" E: (#{address}): #{command[:command]} return exit code: #{exit_code}\n", :color => :red) if exit_code != 0
|
86
86
|
return exit_code
|
87
87
|
elsif command[:type] == :local
|
data/lib/screwcap.rb
CHANGED
data/screwcap.gemspec
CHANGED
data/spec/task_spec.rb
CHANGED
@@ -28,7 +28,7 @@ describe "Tasks" do
|
|
28
28
|
it "should be able to execute statements on a remote server" do
|
29
29
|
task = @deployer.__tasks.find {|t| t.name == :task1 }
|
30
30
|
Runner.execute! task, @deployer.__options
|
31
|
-
@stderr.size.should ==
|
31
|
+
@stderr.size.should == 0
|
32
32
|
@stdout.size.should == 26
|
33
33
|
end
|
34
34
|
|
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: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 4
|
10
|
+
version: 0.3.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Grant Ammons
|
@@ -98,10 +98,7 @@ dependencies:
|
|
98
98
|
version: 2.6.2
|
99
99
|
type: :development
|
100
100
|
version_requirements: *id005
|
101
|
-
description:
|
102
|
-
Screwcap is a library that wraps Net::SSH and makes it easy to perform actions on remote servers. It's not smart and does not make any assumptions about your setup.
|
103
|
-
|
104
|
-
The most obvious task you could use screwcap for is deploying rails applications to remote servers.
|
101
|
+
description: Screwcap is a library that wraps Net::SSH and makes it easy to perform actions on remote servers.
|
105
102
|
email:
|
106
103
|
- grant@pipelinedeals.com
|
107
104
|
executables:
|
@@ -184,6 +181,6 @@ rubyforge_project: screwcap
|
|
184
181
|
rubygems_version: 1.3.7
|
185
182
|
signing_key:
|
186
183
|
specification_version: 3
|
187
|
-
summary: Screwcap is a library that wraps Net::SSH and makes it easy to perform actions on remote servers
|
184
|
+
summary: Screwcap is a library that wraps Net::SSH and makes it easy to perform actions on remote servers.
|
188
185
|
test_files: []
|
189
186
|
|