chake 0.4.3 → 0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +5 -0
- data/README.md +9 -3
- data/examples/test/Rakefile +13 -1
- data/lib/chake.rb +5 -0
- data/lib/chake/backend.rb +4 -0
- data/lib/chake/backend/local.rb +4 -0
- data/lib/chake/backend/ssh.rb +4 -0
- data/lib/chake/node.rb +1 -1
- data/lib/chake/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 825031afb9cace35e4f750ed736f80532e99d55b
|
4
|
+
data.tar.gz: 118d6e7f4a98d8215ba3bde42f4037405d1dd159
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f12ed797e7fe14c6f9db8f47483b55fc9bd671b8735b7f078cc8268f539782bfe7310fbba27958b19cf8b9b471eb4cfaa410711dc57b27e9e47599ad8b2d6dc6
|
7
|
+
data.tar.gz: 018fcbac5e10fad14bec70a18d8d69b23cbbf4ddf30c2b8d9b7b1c5c193b17d81c9e44439d27802a990a08aa625c56e5ca5e2909039356e6e245914a0dde9b9a
|
data/ChangeLog.md
CHANGED
data/README.md
CHANGED
@@ -150,9 +150,15 @@ of the configuration.
|
|
150
150
|
### repository-local SSH configuration
|
151
151
|
|
152
152
|
If you need special SSH configuration parameters, you can create a file called
|
153
|
-
`.ssh_config` (or whatever name you have in the `$CHAKE_SSH_CONFIG`
|
154
|
-
variable, see below for details) in at the root of your repository,
|
155
|
-
will use it when calling `ssh`.
|
153
|
+
`.ssh_config` (or whatever file name you have in the `$CHAKE_SSH_CONFIG`
|
154
|
+
environment variable, see below for details) in at the root of your repository,
|
155
|
+
and chake will use it when calling `ssh`.
|
156
|
+
|
157
|
+
### Logging in to a host
|
158
|
+
|
159
|
+
To easily login to one of your host, just run `rake login:$HOSTNAME`. This will
|
160
|
+
automatically use the repository-local SSH configuration as above so you don't
|
161
|
+
have to type `-F .ssh_config` all the time.
|
156
162
|
|
157
163
|
### Converging local host
|
158
164
|
|
data/examples/test/Rakefile
CHANGED
@@ -1,7 +1,19 @@
|
|
1
1
|
$:.unshift '../../lib' # this shouldn't be needed when you have chake installed
|
2
2
|
require 'chake'
|
3
3
|
|
4
|
+
manifest = %w[
|
5
|
+
Rakefile
|
6
|
+
cookbooks
|
7
|
+
cookbooks/example
|
8
|
+
cookbooks/example/recipes
|
9
|
+
cookbooks/example/recipes/default.rb
|
10
|
+
cookbooks/example/files
|
11
|
+
cookbooks/example/files/host-homer
|
12
|
+
cookbooks/example/files/host-homer/test.asc
|
13
|
+
config.rb
|
14
|
+
]
|
15
|
+
|
4
16
|
desc 'removes everything'
|
5
17
|
task :clean do
|
6
|
-
rm_rf Dir.glob('*') -
|
18
|
+
rm_rf Dir.glob('*') - manifest
|
7
19
|
end
|
data/lib/chake.rb
CHANGED
data/lib/chake/backend.rb
CHANGED
data/lib/chake/backend/local.rb
CHANGED
data/lib/chake/backend/ssh.rb
CHANGED
data/lib/chake/node.rb
CHANGED
@@ -49,7 +49,7 @@ module Chake
|
|
49
49
|
@backend ||= Chake::Backend.get(@backend_name).new(self)
|
50
50
|
end
|
51
51
|
|
52
|
-
def_delegators :backend, :run, :run_as_root, :rsync, :rsync_dest, :scp, :scp_dest, :skip?
|
52
|
+
def_delegators :backend, :run, :run_as_root, :run_shell, :rsync, :rsync_dest, :scp, :scp_dest, :skip?
|
53
53
|
|
54
54
|
end
|
55
55
|
|
data/lib/chake/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: '0.5'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antonio Terceiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|