screwcap 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
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. It's not smart and does not make any assumptions about your setup.
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
- == SYNOPSIS:
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
- FIX (code sample of usage)
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.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
@@ -1 +1,2 @@
1
1
  * validate if a gateway exists if declared with server
2
+ * use keyword should be able to find a file anywhere
@@ -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
@@ -16,7 +16,7 @@ require 'screwcap/sequence'
16
16
  require 'screwcap/deployer'
17
17
 
18
18
  module Screwcap
19
- VERSION='0.3.3'
19
+ VERSION='0.3.4'
20
20
 
21
21
  class TaskNotFound < RuntimeError; end
22
22
  class NoServersDefined < Exception; end
data/screwcap.gemspec CHANGED
@@ -6,7 +6,7 @@ require 'bundler/version'
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "screwcap"
9
- s.version = "0.3.3"
9
+ s.version = "0.3.4"
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.author = "Grant Ammons"
12
12
  s.email = ["grant@pipelinedealsco.com"]
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 == 12
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: 21
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 3
10
- version: 0.3.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