capistrano 2.5.9 → 2.5.10
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +8 -0
- data/CHANGELOG.rdoc +16 -7
- data/Rakefile +24 -26
- data/TESTING.md +16 -0
- data/VERSION +1 -0
- data/lib/capistrano/cli.rb +5 -5
- data/lib/capistrano/configuration/actions/invocation.rb +3 -1
- data/lib/capistrano/recipes/deploy.rb +2 -1
- data/lib/capistrano/recipes/deploy/scm/darcs.rb +12 -1
- data/lib/capistrano/task_definition.rb +9 -4
- data/lib/capistrano/version.rb +1 -1
- data/test/deploy/scm/darcs_test.rb +37 -0
- data/test/task_definition_test.rb +15 -0
- data/test/utils.rb +1 -0
- metadata +43 -87
- data/Manifest +0 -104
- data/capistrano.gemspec +0 -48
- data/examples/sample.rb +0 -14
data/.gitignore
ADDED
data/CHANGELOG.rdoc
CHANGED
@@ -1,14 +1,23 @@
|
|
1
|
-
== 2.5.
|
1
|
+
== 2.5.10 / 3 November 2009
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
* Fixes Darcs remote repository problem when using the copy strategy [Alex `regularfry` Young]
|
4
|
+
* Documentation improvements for embedding Capistrano [Lee Hambley]
|
5
|
+
* Fixes ticket #95 -formally deprecating the before_something and after_something methods [Lee Hambley]
|
6
|
+
|
7
|
+
== 2.5.9 / 1 August 2009
|
8
|
+
|
9
|
+
* Adds support for customizing which `tar` command to use. [Jeremy Wells]
|
10
|
+
|
11
|
+
* Fixes a couple of documentation problems, typos and worse. [Lee Hambley]
|
12
|
+
|
13
|
+
* #105 - Add skip_hostfilter option to find_servers() [Eric]
|
14
|
+
* #103 - Using non-master branch fails with Ruby 1.9 [Suraj Kurapati]
|
5
15
|
* #96 - Tweak for 1.9 Compatibility
|
6
|
-
* #79 -
|
7
|
-
* #77 -
|
8
|
-
* #76 -
|
16
|
+
* #79 - Capistrano hangs on shell command for many computers
|
17
|
+
* #77 - Copy command doesn't work on Solaris due to tar/gtar
|
18
|
+
* #76 - Invalid Subversion URL
|
9
19
|
* Improved web:disable task, now suggests a .htaccess block to use suggested by Rafael García
|
10
20
|
* Includes more logger options (can now select stdout, stderr of a file) [Rafael García]
|
11
|
-
* Fixes a couple of documentation problems, typos and worse. [Lee Hambley]
|
12
21
|
|
13
22
|
== 2.5.8 / July 2009
|
14
23
|
|
data/Rakefile
CHANGED
@@ -1,35 +1,33 @@
|
|
1
1
|
require "./lib/capistrano/version"
|
2
2
|
|
3
3
|
begin
|
4
|
-
require '
|
4
|
+
require 'jeweler'
|
5
|
+
Jeweler::Tasks.new do |gem|
|
6
|
+
gem.version
|
7
|
+
gem.name = "capistrano"
|
8
|
+
gem.summary = %Q{Capistrano – Welcome to easy deployment with Ruby over SSH}
|
9
|
+
gem.description = %Q{Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH.}
|
10
|
+
gem.homepage = "http://github.com/capistrano/capistrano"
|
11
|
+
gem.email = [ "jamis@jamisbuck.org", "lee.hambley@gmail.com" ]
|
12
|
+
gem.authors = [ "Jamis Buck", "Lee Hambley" ]
|
13
|
+
gem.add_dependency "net-ssh", ">=2.0.14"
|
14
|
+
gem.add_dependency "net-sftp", ">=2.0.0"
|
15
|
+
gem.add_dependency "net-scp", ">=1.0.0"
|
16
|
+
gem.add_dependency "net-ssh-gateway", ">=1.0.0"
|
17
|
+
gem.add_dependency "highline"
|
18
|
+
gem.add_development_dependency "mocha", ">= 0"
|
19
|
+
end
|
5
20
|
rescue LoadError
|
6
|
-
|
21
|
+
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
7
22
|
end
|
8
23
|
|
9
|
-
|
10
|
-
|
11
|
-
|
24
|
+
require 'rake/testtask'
|
25
|
+
Rake::TestTask.new(:test) do |test|
|
26
|
+
test.libs << 'lib' << 'test'
|
27
|
+
test.pattern = 'test/**/*_test.rb'
|
28
|
+
test.verbose = true
|
12
29
|
end
|
13
30
|
|
14
|
-
|
15
|
-
|
16
|
-
p.changelog = "CHANGELOG.rdoc"
|
31
|
+
task :test => :check_dependencies
|
32
|
+
task :default => :test
|
17
33
|
|
18
|
-
p.author = ["Jamis Buck", "Lee Hambley"]
|
19
|
-
p.email = ["jamis@jamisbuck.org", "lee.hambley@gmail.com"]
|
20
|
-
|
21
|
-
p.summary = <<-DESC.strip.gsub(/\n\s+/, " ")
|
22
|
-
Capistrano is a utility and framework for executing commands in parallel
|
23
|
-
on multiple remote machines, via SSH.
|
24
|
-
DESC
|
25
|
-
|
26
|
-
p.url = "http://www.capify.org"
|
27
|
-
p.need_zip = true
|
28
|
-
p.rdoc_pattern = /^(lib|README.rdoc|CHANGELOG.rdoc)/
|
29
|
-
|
30
|
-
p.dependencies = ["net-ssh >=2.0.14",
|
31
|
-
"net-sftp >=2.0.0",
|
32
|
-
"net-scp >=1.0.0",
|
33
|
-
"net-ssh-gateway >=1.0.0",
|
34
|
-
"highline"]
|
35
|
-
end
|
data/TESTING.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
Testing Capistrano
|
2
|
+
==================
|
3
|
+
|
4
|
+
1. Install the Following Gem Dependencies
|
5
|
+
|
6
|
+
`# gem install mocha echoe`
|
7
|
+
|
8
|
+
2. Run the following
|
9
|
+
|
10
|
+
`$ rake test`
|
11
|
+
|
12
|
+
3. Output Should Resemble
|
13
|
+
|
14
|
+
`Finished in 0.859017 seconds.`
|
15
|
+
`523 tests, 1271 assertions, 0 failures, 0 errors`
|
16
|
+
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.5.10
|
data/lib/capistrano/cli.rb
CHANGED
@@ -17,17 +17,16 @@ module Capistrano
|
|
17
17
|
# different set of parameters (such as when embedded cap in a program):
|
18
18
|
#
|
19
19
|
# require 'capistrano/cli'
|
20
|
-
# Capistrano::CLI.parse(%
|
20
|
+
# Capistrano::CLI.parse(%W(-vvvv -f config/deploy update_code)).execute!
|
21
21
|
#
|
22
22
|
# Note that you can also embed cap directly by creating a new Configuration
|
23
|
-
# instance and setting it up,
|
24
|
-
#
|
25
|
-
# class directly, would look like:
|
23
|
+
# instance and setting it up, The above snippet, redone using the
|
24
|
+
# Configuration class directly, would look like:
|
26
25
|
#
|
27
26
|
# require 'capistrano'
|
28
27
|
# require 'capistrano/cli'
|
29
28
|
# config = Capistrano::Configuration.new
|
30
|
-
# config.
|
29
|
+
# config.logger.level = Capistrano::Logger::TRACE
|
31
30
|
# config.set(:password) { Capistrano::CLI.password_prompt }
|
32
31
|
# config.load "config/deploy"
|
33
32
|
# config.update_code
|
@@ -43,5 +42,6 @@ module Capistrano
|
|
43
42
|
# Mix-in the actual behavior
|
44
43
|
include Execute, Options, UI
|
45
44
|
include Help # needs to be included last, because it overrides some methods
|
45
|
+
|
46
46
|
end
|
47
47
|
end
|
@@ -116,7 +116,9 @@ module Capistrano
|
|
116
116
|
# * :max_hosts - specifies the maximum number of hosts that should be selected
|
117
117
|
# at a time. If this value is less than the number of hosts that are selected
|
118
118
|
# to run, then the hosts will be run in groups of max_hosts. The default is nil,
|
119
|
-
# which indicates that there is no maximum host limit.
|
119
|
+
# which indicates that there is no maximum host limit. Please note this does not
|
120
|
+
# limit the number of SSH channels that can be open, only the number of hosts upon
|
121
|
+
# which this will be called.
|
120
122
|
# * :shell - says which shell should be used to invoke commands. This
|
121
123
|
# defaults to "sh". Setting this to false causes Capistrano to invoke
|
122
124
|
# the commands directly, without wrapping them in a shell invocation.
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'yaml'
|
2
|
+
require 'mkmf'
|
2
3
|
require 'capistrano/recipes/deploy/scm'
|
3
4
|
require 'capistrano/recipes/deploy/strategy'
|
4
5
|
|
@@ -101,7 +102,7 @@ end
|
|
101
102
|
# tests if the given command is present on the local system
|
102
103
|
def command_present?(cmd)
|
103
104
|
executable = cmd.to_s.split(" ").first
|
104
|
-
unless
|
105
|
+
unless find_executable(executable)
|
105
106
|
logger.important "executable '#{executable}' not present or not in $PATH on the local system!"
|
106
107
|
end
|
107
108
|
end
|
@@ -18,11 +18,22 @@ module Capistrano
|
|
18
18
|
:head
|
19
19
|
end
|
20
20
|
|
21
|
+
def to_match(revision)
|
22
|
+
if revision.nil? || revision == self.head
|
23
|
+
nil
|
24
|
+
else
|
25
|
+
"--to-match='hash #{revision}'"
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
21
29
|
# Returns the command that will check out the given revision to the
|
22
30
|
# given destination. The 'revision' parameter must be the 'hash' value
|
23
31
|
# for the revision in question, as given by 'darcs changes --xml-output'.
|
24
32
|
def checkout(revision, destination)
|
25
|
-
scm :get, verbose,
|
33
|
+
scm :get, *[verbose,
|
34
|
+
"--repo-name=#{destination}",
|
35
|
+
to_match(revision),
|
36
|
+
repository].compact
|
26
37
|
end
|
27
38
|
|
28
39
|
# Tries to update the destination repository in-place, to bring it up
|
@@ -4,8 +4,13 @@ module Capistrano
|
|
4
4
|
# Represents the definition of a single task.
|
5
5
|
class TaskDefinition
|
6
6
|
attr_reader :name, :namespace, :options, :body, :desc, :on_error, :max_hosts
|
7
|
-
|
7
|
+
|
8
8
|
def initialize(name, namespace, options={}, &block)
|
9
|
+
|
10
|
+
if name.to_s =~ /^(?:before_|after_)/
|
11
|
+
Kernel.warn("[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was #{name})")
|
12
|
+
end
|
13
|
+
|
9
14
|
@name, @namespace, @options = name, namespace, options
|
10
15
|
@desc = @options.delete(:desc)
|
11
16
|
@on_error = options.delete(:on_error)
|
@@ -24,7 +29,7 @@ module Capistrano
|
|
24
29
|
end
|
25
30
|
end
|
26
31
|
end
|
27
|
-
|
32
|
+
|
28
33
|
# Returns the description for this task, with newlines collapsed and
|
29
34
|
# whitespace stripped. Returns the empty string if there is no
|
30
35
|
# description for this task.
|
@@ -32,7 +37,7 @@ module Capistrano
|
|
32
37
|
@description = nil if rebuild
|
33
38
|
@description ||= begin
|
34
39
|
description = @desc || ""
|
35
|
-
|
40
|
+
|
36
41
|
indentation = description[/\A\s+/]
|
37
42
|
if indentation
|
38
43
|
reformatted_description = ""
|
@@ -67,4 +72,4 @@ module Capistrano
|
|
67
72
|
@on_error == :continue
|
68
73
|
end
|
69
74
|
end
|
70
|
-
end
|
75
|
+
end
|
data/lib/capistrano/version.rb
CHANGED
@@ -0,0 +1,37 @@
|
|
1
|
+
require "utils"
|
2
|
+
require 'capistrano/recipes/deploy/scm/darcs'
|
3
|
+
|
4
|
+
class DeploySCMDarcsTest < Test::Unit::TestCase
|
5
|
+
class TestSCM < Capistrano::Deploy::SCM::Darcs
|
6
|
+
default_command "darcs"
|
7
|
+
end
|
8
|
+
def setup
|
9
|
+
@config = { :repository => "." }
|
10
|
+
# def @config.exists?(name); key?(name); end
|
11
|
+
|
12
|
+
@source = TestSCM.new(@config)
|
13
|
+
end
|
14
|
+
|
15
|
+
# We should be able to pick a specific hash.
|
16
|
+
def test_checkout_hash
|
17
|
+
hsh = "*version_hash*"
|
18
|
+
assert_match(%r{--to-match=.hash #{Regexp.quote(hsh)}},
|
19
|
+
@source.checkout(hsh, "*foo_location*"),
|
20
|
+
"Specifying a revision hash got the --to-match option wrong.")
|
21
|
+
end
|
22
|
+
|
23
|
+
# Picking the head revision should leave out the hash, because head is the
|
24
|
+
# default and we don't have a HEAD pseudotag
|
25
|
+
def test_checkout_head
|
26
|
+
hsh = @source.head
|
27
|
+
assert_no_match(%r{--to-match}, @source.checkout(hsh, "*foo_location*"),
|
28
|
+
"Selecting the head revision incorrectly produced a --to-match option.")
|
29
|
+
end
|
30
|
+
|
31
|
+
# Leaving the revision as nil shouldn't break anything.
|
32
|
+
def test_checkout_nil
|
33
|
+
assert_no_match(%r{--to-match}, @source.checkout(nil, "*foo_location*"),
|
34
|
+
"Leaving the revision as nil incorrectly produced a --to-match option.")
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
@@ -1,6 +1,9 @@
|
|
1
1
|
require "utils"
|
2
2
|
require 'capistrano/task_definition'
|
3
3
|
|
4
|
+
# Silences the wanrnings raised in the two deprecation tests
|
5
|
+
$VERBOSE = nil
|
6
|
+
|
4
7
|
class TaskDefinitionTest < Test::Unit::TestCase
|
5
8
|
def setup
|
6
9
|
@namespace = namespace
|
@@ -22,6 +25,18 @@ class TaskDefinitionTest < Test::Unit::TestCase
|
|
22
25
|
assert_equal "default", task.fully_qualified_name
|
23
26
|
end
|
24
27
|
|
28
|
+
def test_deprecation_warning_on_method_name_beginning_with_before_underscore
|
29
|
+
name = "before_test"
|
30
|
+
Kernel.expects(:warn).with("[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was #{name})")
|
31
|
+
new_task(name)
|
32
|
+
end
|
33
|
+
|
34
|
+
def test_deprecation_warning_on_method_name_beginning_with_after_underscore
|
35
|
+
name = "after_test"
|
36
|
+
Kernel.expects(:warn).with("[Deprecation Warning] Naming tasks with before_ and after_ is deprecated, please see the new before() and after() methods. (Offending task name was #{name})")
|
37
|
+
new_task(name)
|
38
|
+
end
|
39
|
+
|
25
40
|
def test_fqn_in_namespace_when_default_should_be_namespace_fqn
|
26
41
|
ns = namespace("outer:inner")
|
27
42
|
task = new_task(:default, ns)
|
data/test/utils.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capistrano
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.5.
|
4
|
+
version: 2.5.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- Jamis Buck
|
7
|
+
- Jamis Buck
|
8
|
+
- Lee Hambley
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
12
|
|
12
|
-
date: 2009-
|
13
|
+
date: 2009-11-11 00:00:00 +01:00
|
13
14
|
default_executable:
|
14
15
|
dependencies:
|
15
16
|
- !ruby/object:Gem::Dependency
|
@@ -62,6 +63,16 @@ dependencies:
|
|
62
63
|
- !ruby/object:Gem::Version
|
63
64
|
version: "0"
|
64
65
|
version:
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
name: mocha
|
68
|
+
type: :development
|
69
|
+
version_requirement:
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: "0"
|
75
|
+
version:
|
65
76
|
description: Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH.
|
66
77
|
email:
|
67
78
|
- jamis@jamisbuck.org
|
@@ -72,80 +83,26 @@ executables:
|
|
72
83
|
extensions: []
|
73
84
|
|
74
85
|
extra_rdoc_files:
|
75
|
-
- CHANGELOG.rdoc
|
76
|
-
- lib/capistrano/callback.rb
|
77
|
-
- lib/capistrano/cli/execute.rb
|
78
|
-
- lib/capistrano/cli/help.rb
|
79
|
-
- lib/capistrano/cli/help.txt
|
80
|
-
- lib/capistrano/cli/options.rb
|
81
|
-
- lib/capistrano/cli/ui.rb
|
82
|
-
- lib/capistrano/cli.rb
|
83
|
-
- lib/capistrano/command.rb
|
84
|
-
- lib/capistrano/configuration/actions/file_transfer.rb
|
85
|
-
- lib/capistrano/configuration/actions/inspect.rb
|
86
|
-
- lib/capistrano/configuration/actions/invocation.rb
|
87
|
-
- lib/capistrano/configuration/callbacks.rb
|
88
|
-
- lib/capistrano/configuration/connections.rb
|
89
|
-
- lib/capistrano/configuration/execution.rb
|
90
|
-
- lib/capistrano/configuration/loading.rb
|
91
|
-
- lib/capistrano/configuration/namespaces.rb
|
92
|
-
- lib/capistrano/configuration/roles.rb
|
93
|
-
- lib/capistrano/configuration/servers.rb
|
94
|
-
- lib/capistrano/configuration/variables.rb
|
95
|
-
- lib/capistrano/configuration.rb
|
96
|
-
- lib/capistrano/errors.rb
|
97
|
-
- lib/capistrano/extensions.rb
|
98
|
-
- lib/capistrano/logger.rb
|
99
|
-
- lib/capistrano/processable.rb
|
100
|
-
- lib/capistrano/recipes/compat.rb
|
101
|
-
- lib/capistrano/recipes/deploy/dependencies.rb
|
102
|
-
- lib/capistrano/recipes/deploy/local_dependency.rb
|
103
|
-
- lib/capistrano/recipes/deploy/remote_dependency.rb
|
104
|
-
- lib/capistrano/recipes/deploy/scm/accurev.rb
|
105
|
-
- lib/capistrano/recipes/deploy/scm/base.rb
|
106
|
-
- lib/capistrano/recipes/deploy/scm/bzr.rb
|
107
|
-
- lib/capistrano/recipes/deploy/scm/cvs.rb
|
108
|
-
- lib/capistrano/recipes/deploy/scm/darcs.rb
|
109
|
-
- lib/capistrano/recipes/deploy/scm/git.rb
|
110
|
-
- lib/capistrano/recipes/deploy/scm/mercurial.rb
|
111
|
-
- lib/capistrano/recipes/deploy/scm/none.rb
|
112
|
-
- lib/capistrano/recipes/deploy/scm/perforce.rb
|
113
|
-
- lib/capistrano/recipes/deploy/scm/subversion.rb
|
114
|
-
- lib/capistrano/recipes/deploy/scm.rb
|
115
|
-
- lib/capistrano/recipes/deploy/strategy/base.rb
|
116
|
-
- lib/capistrano/recipes/deploy/strategy/checkout.rb
|
117
|
-
- lib/capistrano/recipes/deploy/strategy/copy.rb
|
118
|
-
- lib/capistrano/recipes/deploy/strategy/export.rb
|
119
|
-
- lib/capistrano/recipes/deploy/strategy/remote.rb
|
120
|
-
- lib/capistrano/recipes/deploy/strategy/remote_cache.rb
|
121
|
-
- lib/capistrano/recipes/deploy/strategy.rb
|
122
|
-
- lib/capistrano/recipes/deploy/templates/maintenance.rhtml
|
123
|
-
- lib/capistrano/recipes/deploy.rb
|
124
|
-
- lib/capistrano/recipes/standard.rb
|
125
|
-
- lib/capistrano/recipes/templates/maintenance.rhtml
|
126
|
-
- lib/capistrano/recipes/upgrade.rb
|
127
|
-
- lib/capistrano/role.rb
|
128
|
-
- lib/capistrano/server_definition.rb
|
129
|
-
- lib/capistrano/shell.rb
|
130
|
-
- lib/capistrano/ssh.rb
|
131
|
-
- lib/capistrano/task_definition.rb
|
132
|
-
- lib/capistrano/transfer.rb
|
133
|
-
- lib/capistrano/version.rb
|
134
|
-
- lib/capistrano.rb
|
135
86
|
- README.rdoc
|
136
87
|
files:
|
88
|
+
- .gitignore
|
89
|
+
- CHANGELOG.rdoc
|
90
|
+
- README.rdoc
|
91
|
+
- Rakefile
|
92
|
+
- TESTING.md
|
93
|
+
- VERSION
|
137
94
|
- bin/cap
|
138
95
|
- bin/capify
|
139
|
-
-
|
140
|
-
- examples/sample.rb
|
96
|
+
- lib/capistrano.rb
|
141
97
|
- lib/capistrano/callback.rb
|
98
|
+
- lib/capistrano/cli.rb
|
142
99
|
- lib/capistrano/cli/execute.rb
|
143
100
|
- lib/capistrano/cli/help.rb
|
144
101
|
- lib/capistrano/cli/help.txt
|
145
102
|
- lib/capistrano/cli/options.rb
|
146
103
|
- lib/capistrano/cli/ui.rb
|
147
|
-
- lib/capistrano/cli.rb
|
148
104
|
- lib/capistrano/command.rb
|
105
|
+
- lib/capistrano/configuration.rb
|
149
106
|
- lib/capistrano/configuration/actions/file_transfer.rb
|
150
107
|
- lib/capistrano/configuration/actions/inspect.rb
|
151
108
|
- lib/capistrano/configuration/actions/invocation.rb
|
@@ -157,15 +114,16 @@ files:
|
|
157
114
|
- lib/capistrano/configuration/roles.rb
|
158
115
|
- lib/capistrano/configuration/servers.rb
|
159
116
|
- lib/capistrano/configuration/variables.rb
|
160
|
-
- lib/capistrano/configuration.rb
|
161
117
|
- lib/capistrano/errors.rb
|
162
118
|
- lib/capistrano/extensions.rb
|
163
119
|
- lib/capistrano/logger.rb
|
164
120
|
- lib/capistrano/processable.rb
|
165
121
|
- lib/capistrano/recipes/compat.rb
|
122
|
+
- lib/capistrano/recipes/deploy.rb
|
166
123
|
- lib/capistrano/recipes/deploy/dependencies.rb
|
167
124
|
- lib/capistrano/recipes/deploy/local_dependency.rb
|
168
125
|
- lib/capistrano/recipes/deploy/remote_dependency.rb
|
126
|
+
- lib/capistrano/recipes/deploy/scm.rb
|
169
127
|
- lib/capistrano/recipes/deploy/scm/accurev.rb
|
170
128
|
- lib/capistrano/recipes/deploy/scm/base.rb
|
171
129
|
- lib/capistrano/recipes/deploy/scm/bzr.rb
|
@@ -176,16 +134,14 @@ files:
|
|
176
134
|
- lib/capistrano/recipes/deploy/scm/none.rb
|
177
135
|
- lib/capistrano/recipes/deploy/scm/perforce.rb
|
178
136
|
- lib/capistrano/recipes/deploy/scm/subversion.rb
|
179
|
-
- lib/capistrano/recipes/deploy/
|
137
|
+
- lib/capistrano/recipes/deploy/strategy.rb
|
180
138
|
- lib/capistrano/recipes/deploy/strategy/base.rb
|
181
139
|
- lib/capistrano/recipes/deploy/strategy/checkout.rb
|
182
140
|
- lib/capistrano/recipes/deploy/strategy/copy.rb
|
183
141
|
- lib/capistrano/recipes/deploy/strategy/export.rb
|
184
142
|
- lib/capistrano/recipes/deploy/strategy/remote.rb
|
185
143
|
- lib/capistrano/recipes/deploy/strategy/remote_cache.rb
|
186
|
-
- lib/capistrano/recipes/deploy/strategy.rb
|
187
144
|
- lib/capistrano/recipes/deploy/templates/maintenance.rhtml
|
188
|
-
- lib/capistrano/recipes/deploy.rb
|
189
145
|
- lib/capistrano/recipes/standard.rb
|
190
146
|
- lib/capistrano/recipes/templates/maintenance.rhtml
|
191
147
|
- lib/capistrano/recipes/upgrade.rb
|
@@ -196,9 +152,6 @@ files:
|
|
196
152
|
- lib/capistrano/task_definition.rb
|
197
153
|
- lib/capistrano/transfer.rb
|
198
154
|
- lib/capistrano/version.rb
|
199
|
-
- lib/capistrano.rb
|
200
|
-
- Rakefile
|
201
|
-
- README.rdoc
|
202
155
|
- setup.rb
|
203
156
|
- test/cli/execute_test.rb
|
204
157
|
- test/cli/help_test.rb
|
@@ -222,8 +175,11 @@ files:
|
|
222
175
|
- test/deploy/remote_dependency_test.rb
|
223
176
|
- test/deploy/scm/accurev_test.rb
|
224
177
|
- test/deploy/scm/base_test.rb
|
178
|
+
- test/deploy/scm/darcs_test.rb
|
225
179
|
- test/deploy/scm/git_test.rb
|
226
180
|
- test/deploy/scm/mercurial_test.rb
|
181
|
+
- test/deploy/scm/none_test.rb
|
182
|
+
- test/deploy/scm/subversion_test.rb
|
227
183
|
- test/deploy/strategy/copy_test.rb
|
228
184
|
- test/extensions_test.rb
|
229
185
|
- test/fixtures/cli_integration.rb
|
@@ -237,18 +193,13 @@ files:
|
|
237
193
|
- test/task_definition_test.rb
|
238
194
|
- test/transfer_test.rb
|
239
195
|
- test/utils.rb
|
240
|
-
- Manifest
|
241
|
-
- capistrano.gemspec
|
242
196
|
has_rdoc: true
|
243
|
-
homepage: http://
|
197
|
+
homepage: http://github.com/capistrano/capistrano
|
198
|
+
licenses: []
|
199
|
+
|
244
200
|
post_install_message:
|
245
201
|
rdoc_options:
|
246
|
-
- --
|
247
|
-
- --inline-source
|
248
|
-
- --title
|
249
|
-
- Capistrano
|
250
|
-
- --main
|
251
|
-
- README.rdoc
|
202
|
+
- --charset=UTF-8
|
252
203
|
require_paths:
|
253
204
|
- lib
|
254
205
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -261,15 +212,15 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
261
212
|
requirements:
|
262
213
|
- - ">="
|
263
214
|
- !ruby/object:Gem::Version
|
264
|
-
version: "
|
215
|
+
version: "0"
|
265
216
|
version:
|
266
217
|
requirements: []
|
267
218
|
|
268
|
-
rubyforge_project:
|
269
|
-
rubygems_version: 1.3.
|
219
|
+
rubyforge_project:
|
220
|
+
rubygems_version: 1.3.5
|
270
221
|
signing_key:
|
271
|
-
specification_version:
|
272
|
-
summary: Capistrano
|
222
|
+
specification_version: 3
|
223
|
+
summary: "Capistrano \xE2\x80\x93 Welcome to easy deployment with Ruby over SSH"
|
273
224
|
test_files:
|
274
225
|
- test/cli/execute_test.rb
|
275
226
|
- test/cli/help_test.rb
|
@@ -293,12 +244,16 @@ test_files:
|
|
293
244
|
- test/deploy/remote_dependency_test.rb
|
294
245
|
- test/deploy/scm/accurev_test.rb
|
295
246
|
- test/deploy/scm/base_test.rb
|
247
|
+
- test/deploy/scm/darcs_test.rb
|
296
248
|
- test/deploy/scm/git_test.rb
|
297
249
|
- test/deploy/scm/mercurial_test.rb
|
298
250
|
- test/deploy/scm/none_test.rb
|
299
251
|
- test/deploy/scm/subversion_test.rb
|
300
252
|
- test/deploy/strategy/copy_test.rb
|
301
253
|
- test/extensions_test.rb
|
254
|
+
- test/fixtures/cli_integration.rb
|
255
|
+
- test/fixtures/config.rb
|
256
|
+
- test/fixtures/custom.rb
|
302
257
|
- test/logger_test.rb
|
303
258
|
- test/role_test.rb
|
304
259
|
- test/server_definition_test.rb
|
@@ -306,3 +261,4 @@ test_files:
|
|
306
261
|
- test/ssh_test.rb
|
307
262
|
- test/task_definition_test.rb
|
308
263
|
- test/transfer_test.rb
|
264
|
+
- test/utils.rb
|
data/Manifest
DELETED
@@ -1,104 +0,0 @@
|
|
1
|
-
bin/cap
|
2
|
-
bin/capify
|
3
|
-
CHANGELOG.rdoc
|
4
|
-
examples/sample.rb
|
5
|
-
lib/capistrano/callback.rb
|
6
|
-
lib/capistrano/cli/execute.rb
|
7
|
-
lib/capistrano/cli/help.rb
|
8
|
-
lib/capistrano/cli/help.txt
|
9
|
-
lib/capistrano/cli/options.rb
|
10
|
-
lib/capistrano/cli/ui.rb
|
11
|
-
lib/capistrano/cli.rb
|
12
|
-
lib/capistrano/command.rb
|
13
|
-
lib/capistrano/configuration/actions/file_transfer.rb
|
14
|
-
lib/capistrano/configuration/actions/inspect.rb
|
15
|
-
lib/capistrano/configuration/actions/invocation.rb
|
16
|
-
lib/capistrano/configuration/callbacks.rb
|
17
|
-
lib/capistrano/configuration/connections.rb
|
18
|
-
lib/capistrano/configuration/execution.rb
|
19
|
-
lib/capistrano/configuration/loading.rb
|
20
|
-
lib/capistrano/configuration/namespaces.rb
|
21
|
-
lib/capistrano/configuration/roles.rb
|
22
|
-
lib/capistrano/configuration/servers.rb
|
23
|
-
lib/capistrano/configuration/variables.rb
|
24
|
-
lib/capistrano/configuration.rb
|
25
|
-
lib/capistrano/errors.rb
|
26
|
-
lib/capistrano/extensions.rb
|
27
|
-
lib/capistrano/logger.rb
|
28
|
-
lib/capistrano/processable.rb
|
29
|
-
lib/capistrano/recipes/compat.rb
|
30
|
-
lib/capistrano/recipes/deploy/dependencies.rb
|
31
|
-
lib/capistrano/recipes/deploy/local_dependency.rb
|
32
|
-
lib/capistrano/recipes/deploy/remote_dependency.rb
|
33
|
-
lib/capistrano/recipes/deploy/scm/accurev.rb
|
34
|
-
lib/capistrano/recipes/deploy/scm/base.rb
|
35
|
-
lib/capistrano/recipes/deploy/scm/bzr.rb
|
36
|
-
lib/capistrano/recipes/deploy/scm/cvs.rb
|
37
|
-
lib/capistrano/recipes/deploy/scm/darcs.rb
|
38
|
-
lib/capistrano/recipes/deploy/scm/git.rb
|
39
|
-
lib/capistrano/recipes/deploy/scm/mercurial.rb
|
40
|
-
lib/capistrano/recipes/deploy/scm/none.rb
|
41
|
-
lib/capistrano/recipes/deploy/scm/perforce.rb
|
42
|
-
lib/capistrano/recipes/deploy/scm/subversion.rb
|
43
|
-
lib/capistrano/recipes/deploy/scm.rb
|
44
|
-
lib/capistrano/recipes/deploy/strategy/base.rb
|
45
|
-
lib/capistrano/recipes/deploy/strategy/checkout.rb
|
46
|
-
lib/capistrano/recipes/deploy/strategy/copy.rb
|
47
|
-
lib/capistrano/recipes/deploy/strategy/export.rb
|
48
|
-
lib/capistrano/recipes/deploy/strategy/remote.rb
|
49
|
-
lib/capistrano/recipes/deploy/strategy/remote_cache.rb
|
50
|
-
lib/capistrano/recipes/deploy/strategy.rb
|
51
|
-
lib/capistrano/recipes/deploy/templates/maintenance.rhtml
|
52
|
-
lib/capistrano/recipes/deploy.rb
|
53
|
-
lib/capistrano/recipes/standard.rb
|
54
|
-
lib/capistrano/recipes/templates/maintenance.rhtml
|
55
|
-
lib/capistrano/recipes/upgrade.rb
|
56
|
-
lib/capistrano/role.rb
|
57
|
-
lib/capistrano/server_definition.rb
|
58
|
-
lib/capistrano/shell.rb
|
59
|
-
lib/capistrano/ssh.rb
|
60
|
-
lib/capistrano/task_definition.rb
|
61
|
-
lib/capistrano/transfer.rb
|
62
|
-
lib/capistrano/version.rb
|
63
|
-
lib/capistrano.rb
|
64
|
-
Rakefile
|
65
|
-
README.rdoc
|
66
|
-
setup.rb
|
67
|
-
test/cli/execute_test.rb
|
68
|
-
test/cli/help_test.rb
|
69
|
-
test/cli/options_test.rb
|
70
|
-
test/cli/ui_test.rb
|
71
|
-
test/cli_test.rb
|
72
|
-
test/command_test.rb
|
73
|
-
test/configuration/actions/file_transfer_test.rb
|
74
|
-
test/configuration/actions/inspect_test.rb
|
75
|
-
test/configuration/actions/invocation_test.rb
|
76
|
-
test/configuration/callbacks_test.rb
|
77
|
-
test/configuration/connections_test.rb
|
78
|
-
test/configuration/execution_test.rb
|
79
|
-
test/configuration/loading_test.rb
|
80
|
-
test/configuration/namespace_dsl_test.rb
|
81
|
-
test/configuration/roles_test.rb
|
82
|
-
test/configuration/servers_test.rb
|
83
|
-
test/configuration/variables_test.rb
|
84
|
-
test/configuration_test.rb
|
85
|
-
test/deploy/local_dependency_test.rb
|
86
|
-
test/deploy/remote_dependency_test.rb
|
87
|
-
test/deploy/scm/accurev_test.rb
|
88
|
-
test/deploy/scm/base_test.rb
|
89
|
-
test/deploy/scm/git_test.rb
|
90
|
-
test/deploy/scm/mercurial_test.rb
|
91
|
-
test/deploy/strategy/copy_test.rb
|
92
|
-
test/extensions_test.rb
|
93
|
-
test/fixtures/cli_integration.rb
|
94
|
-
test/fixtures/config.rb
|
95
|
-
test/fixtures/custom.rb
|
96
|
-
test/logger_test.rb
|
97
|
-
test/role_test.rb
|
98
|
-
test/server_definition_test.rb
|
99
|
-
test/shell_test.rb
|
100
|
-
test/ssh_test.rb
|
101
|
-
test/task_definition_test.rb
|
102
|
-
test/transfer_test.rb
|
103
|
-
test/utils.rb
|
104
|
-
Manifest
|
data/capistrano.gemspec
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = %q{capistrano}
|
5
|
-
s.version = "2.5.9"
|
6
|
-
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
8
|
-
s.authors = ["Jamis Buck, Lee Hambley"]
|
9
|
-
s.date = %q{2009-09-12}
|
10
|
-
s.description = %q{Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH.}
|
11
|
-
s.email = ["jamis@jamisbuck.org", "lee.hambley@gmail.com"]
|
12
|
-
s.executables = ["cap", "capify"]
|
13
|
-
s.extra_rdoc_files = ["CHANGELOG.rdoc", "lib/capistrano/callback.rb", "lib/capistrano/cli/execute.rb", "lib/capistrano/cli/help.rb", "lib/capistrano/cli/help.txt", "lib/capistrano/cli/options.rb", "lib/capistrano/cli/ui.rb", "lib/capistrano/cli.rb", "lib/capistrano/command.rb", "lib/capistrano/configuration/actions/file_transfer.rb", "lib/capistrano/configuration/actions/inspect.rb", "lib/capistrano/configuration/actions/invocation.rb", "lib/capistrano/configuration/callbacks.rb", "lib/capistrano/configuration/connections.rb", "lib/capistrano/configuration/execution.rb", "lib/capistrano/configuration/loading.rb", "lib/capistrano/configuration/namespaces.rb", "lib/capistrano/configuration/roles.rb", "lib/capistrano/configuration/servers.rb", "lib/capistrano/configuration/variables.rb", "lib/capistrano/configuration.rb", "lib/capistrano/errors.rb", "lib/capistrano/extensions.rb", "lib/capistrano/logger.rb", "lib/capistrano/processable.rb", "lib/capistrano/recipes/compat.rb", "lib/capistrano/recipes/deploy/dependencies.rb", "lib/capistrano/recipes/deploy/local_dependency.rb", "lib/capistrano/recipes/deploy/remote_dependency.rb", "lib/capistrano/recipes/deploy/scm/accurev.rb", "lib/capistrano/recipes/deploy/scm/base.rb", "lib/capistrano/recipes/deploy/scm/bzr.rb", "lib/capistrano/recipes/deploy/scm/cvs.rb", "lib/capistrano/recipes/deploy/scm/darcs.rb", "lib/capistrano/recipes/deploy/scm/git.rb", "lib/capistrano/recipes/deploy/scm/mercurial.rb", "lib/capistrano/recipes/deploy/scm/none.rb", "lib/capistrano/recipes/deploy/scm/perforce.rb", "lib/capistrano/recipes/deploy/scm/subversion.rb", "lib/capistrano/recipes/deploy/scm.rb", "lib/capistrano/recipes/deploy/strategy/base.rb", "lib/capistrano/recipes/deploy/strategy/checkout.rb", "lib/capistrano/recipes/deploy/strategy/copy.rb", "lib/capistrano/recipes/deploy/strategy/export.rb", "lib/capistrano/recipes/deploy/strategy/remote.rb", "lib/capistrano/recipes/deploy/strategy/remote_cache.rb", "lib/capistrano/recipes/deploy/strategy.rb", "lib/capistrano/recipes/deploy/templates/maintenance.rhtml", "lib/capistrano/recipes/deploy.rb", "lib/capistrano/recipes/standard.rb", "lib/capistrano/recipes/templates/maintenance.rhtml", "lib/capistrano/recipes/upgrade.rb", "lib/capistrano/role.rb", "lib/capistrano/server_definition.rb", "lib/capistrano/shell.rb", "lib/capistrano/ssh.rb", "lib/capistrano/task_definition.rb", "lib/capistrano/transfer.rb", "lib/capistrano/version.rb", "lib/capistrano.rb", "README.rdoc"]
|
14
|
-
s.files = ["bin/cap", "bin/capify", "CHANGELOG.rdoc", "examples/sample.rb", "lib/capistrano/callback.rb", "lib/capistrano/cli/execute.rb", "lib/capistrano/cli/help.rb", "lib/capistrano/cli/help.txt", "lib/capistrano/cli/options.rb", "lib/capistrano/cli/ui.rb", "lib/capistrano/cli.rb", "lib/capistrano/command.rb", "lib/capistrano/configuration/actions/file_transfer.rb", "lib/capistrano/configuration/actions/inspect.rb", "lib/capistrano/configuration/actions/invocation.rb", "lib/capistrano/configuration/callbacks.rb", "lib/capistrano/configuration/connections.rb", "lib/capistrano/configuration/execution.rb", "lib/capistrano/configuration/loading.rb", "lib/capistrano/configuration/namespaces.rb", "lib/capistrano/configuration/roles.rb", "lib/capistrano/configuration/servers.rb", "lib/capistrano/configuration/variables.rb", "lib/capistrano/configuration.rb", "lib/capistrano/errors.rb", "lib/capistrano/extensions.rb", "lib/capistrano/logger.rb", "lib/capistrano/processable.rb", "lib/capistrano/recipes/compat.rb", "lib/capistrano/recipes/deploy/dependencies.rb", "lib/capistrano/recipes/deploy/local_dependency.rb", "lib/capistrano/recipes/deploy/remote_dependency.rb", "lib/capistrano/recipes/deploy/scm/accurev.rb", "lib/capistrano/recipes/deploy/scm/base.rb", "lib/capistrano/recipes/deploy/scm/bzr.rb", "lib/capistrano/recipes/deploy/scm/cvs.rb", "lib/capistrano/recipes/deploy/scm/darcs.rb", "lib/capistrano/recipes/deploy/scm/git.rb", "lib/capistrano/recipes/deploy/scm/mercurial.rb", "lib/capistrano/recipes/deploy/scm/none.rb", "lib/capistrano/recipes/deploy/scm/perforce.rb", "lib/capistrano/recipes/deploy/scm/subversion.rb", "lib/capistrano/recipes/deploy/scm.rb", "lib/capistrano/recipes/deploy/strategy/base.rb", "lib/capistrano/recipes/deploy/strategy/checkout.rb", "lib/capistrano/recipes/deploy/strategy/copy.rb", "lib/capistrano/recipes/deploy/strategy/export.rb", "lib/capistrano/recipes/deploy/strategy/remote.rb", "lib/capistrano/recipes/deploy/strategy/remote_cache.rb", "lib/capistrano/recipes/deploy/strategy.rb", "lib/capistrano/recipes/deploy/templates/maintenance.rhtml", "lib/capistrano/recipes/deploy.rb", "lib/capistrano/recipes/standard.rb", "lib/capistrano/recipes/templates/maintenance.rhtml", "lib/capistrano/recipes/upgrade.rb", "lib/capistrano/role.rb", "lib/capistrano/server_definition.rb", "lib/capistrano/shell.rb", "lib/capistrano/ssh.rb", "lib/capistrano/task_definition.rb", "lib/capistrano/transfer.rb", "lib/capistrano/version.rb", "lib/capistrano.rb", "Rakefile", "README.rdoc", "setup.rb", "test/cli/execute_test.rb", "test/cli/help_test.rb", "test/cli/options_test.rb", "test/cli/ui_test.rb", "test/cli_test.rb", "test/command_test.rb", "test/configuration/actions/file_transfer_test.rb", "test/configuration/actions/inspect_test.rb", "test/configuration/actions/invocation_test.rb", "test/configuration/callbacks_test.rb", "test/configuration/connections_test.rb", "test/configuration/execution_test.rb", "test/configuration/loading_test.rb", "test/configuration/namespace_dsl_test.rb", "test/configuration/roles_test.rb", "test/configuration/servers_test.rb", "test/configuration/variables_test.rb", "test/configuration_test.rb", "test/deploy/local_dependency_test.rb", "test/deploy/remote_dependency_test.rb", "test/deploy/scm/accurev_test.rb", "test/deploy/scm/base_test.rb", "test/deploy/scm/git_test.rb", "test/deploy/scm/mercurial_test.rb", "test/deploy/strategy/copy_test.rb", "test/extensions_test.rb", "test/fixtures/cli_integration.rb", "test/fixtures/config.rb", "test/fixtures/custom.rb", "test/logger_test.rb", "test/role_test.rb", "test/server_definition_test.rb", "test/shell_test.rb", "test/ssh_test.rb", "test/task_definition_test.rb", "test/transfer_test.rb", "test/utils.rb", "Manifest", "capistrano.gemspec", "test/deploy/scm/none_test.rb", "test/deploy/scm/subversion_test.rb"]
|
15
|
-
s.has_rdoc = true
|
16
|
-
s.homepage = %q{http://www.capify.org}
|
17
|
-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Capistrano", "--main", "README.rdoc"]
|
18
|
-
s.require_paths = ["lib"]
|
19
|
-
s.rubyforge_project = %q{capistrano}
|
20
|
-
s.rubygems_version = %q{1.3.1}
|
21
|
-
s.summary = %q{Capistrano is a utility and framework for executing commands in parallel on multiple remote machines, via SSH.}
|
22
|
-
s.test_files = ["test/cli/execute_test.rb", "test/cli/help_test.rb", "test/cli/options_test.rb", "test/cli/ui_test.rb", "test/cli_test.rb", "test/command_test.rb", "test/configuration/actions/file_transfer_test.rb", "test/configuration/actions/inspect_test.rb", "test/configuration/actions/invocation_test.rb", "test/configuration/callbacks_test.rb", "test/configuration/connections_test.rb", "test/configuration/execution_test.rb", "test/configuration/loading_test.rb", "test/configuration/namespace_dsl_test.rb", "test/configuration/roles_test.rb", "test/configuration/servers_test.rb", "test/configuration/variables_test.rb", "test/configuration_test.rb", "test/deploy/local_dependency_test.rb", "test/deploy/remote_dependency_test.rb", "test/deploy/scm/accurev_test.rb", "test/deploy/scm/base_test.rb", "test/deploy/scm/git_test.rb", "test/deploy/scm/mercurial_test.rb", "test/deploy/scm/none_test.rb", "test/deploy/scm/subversion_test.rb", "test/deploy/strategy/copy_test.rb", "test/extensions_test.rb", "test/logger_test.rb", "test/role_test.rb", "test/server_definition_test.rb", "test/shell_test.rb", "test/ssh_test.rb", "test/task_definition_test.rb", "test/transfer_test.rb"]
|
23
|
-
|
24
|
-
if s.respond_to? :specification_version then
|
25
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
26
|
-
s.specification_version = 2
|
27
|
-
|
28
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
29
|
-
s.add_runtime_dependency(%q<net-ssh>, [">= 2.0.14"])
|
30
|
-
s.add_runtime_dependency(%q<net-sftp>, [">= 2.0.0"])
|
31
|
-
s.add_runtime_dependency(%q<net-scp>, [">= 1.0.0"])
|
32
|
-
s.add_runtime_dependency(%q<net-ssh-gateway>, [">= 1.0.0"])
|
33
|
-
s.add_runtime_dependency(%q<highline>, [">= 0"])
|
34
|
-
else
|
35
|
-
s.add_dependency(%q<net-ssh>, [">= 2.0.14"])
|
36
|
-
s.add_dependency(%q<net-sftp>, [">= 2.0.0"])
|
37
|
-
s.add_dependency(%q<net-scp>, [">= 1.0.0"])
|
38
|
-
s.add_dependency(%q<net-ssh-gateway>, [">= 1.0.0"])
|
39
|
-
s.add_dependency(%q<highline>, [">= 0"])
|
40
|
-
end
|
41
|
-
else
|
42
|
-
s.add_dependency(%q<net-ssh>, [">= 2.0.14"])
|
43
|
-
s.add_dependency(%q<net-sftp>, [">= 2.0.0"])
|
44
|
-
s.add_dependency(%q<net-scp>, [">= 1.0.0"])
|
45
|
-
s.add_dependency(%q<net-ssh-gateway>, [">= 1.0.0"])
|
46
|
-
s.add_dependency(%q<highline>, [">= 0"])
|
47
|
-
end
|
48
|
-
end
|
data/examples/sample.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# set :user, "flippy"
|
2
|
-
# set :password, "hello-flippy"
|
3
|
-
# set :gateway, "gateway.example.com"
|
4
|
-
|
5
|
-
role :web, "web1.example.com"
|
6
|
-
role :app, "app1.example.com", "app2.example.com"
|
7
|
-
|
8
|
-
desc <<-DESC
|
9
|
-
This is a sample task. It is only intended to be used as a demonstration of \
|
10
|
-
how you can define your own tasks.
|
11
|
-
DESC
|
12
|
-
task :sample_task, :roles => :app do
|
13
|
-
run "ls -l"
|
14
|
-
end
|