cronicle 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/cronicle/dsl/context/job.rb +1 -1
- data/lib/cronicle/ext/sshkit_ext.rb +11 -0
- data/lib/cronicle/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: 9671c2408dcd1e81c18c453cfb0337b37853b444
|
4
|
+
data.tar.gz: b0a075f4eb57c43edff84d9d68d08fe6a8af41f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f4caf9b0bb52999418ff28be419c0a541635048bf606b878ac1f4f6177cafd5accefbd41d262ca4423e7ec40b79a7f6931d11a869d4e954b7de4d30789d318e
|
7
|
+
data.tar.gz: 9526f40169d7852ee7fa2de6cfbb2d2ddf3ebb7339dc4e5dfa4d5fc8144f49f0296a984c9278e1edd7458c644b2bdc7208d3b19052e05ee184e52cca4a280ce8
|
data/README.md
CHANGED
@@ -102,7 +102,7 @@ on servers: :your_hostname do
|
|
102
102
|
end
|
103
103
|
```
|
104
104
|
|
105
|
-
###
|
105
|
+
### Use bundler
|
106
106
|
|
107
107
|
```ruby
|
108
108
|
on servers: :your_hostname do
|
@@ -116,7 +116,7 @@ on servers: :your_hostname do
|
|
116
116
|
end
|
117
117
|
```
|
118
118
|
|
119
|
-
###
|
119
|
+
### Use variables
|
120
120
|
|
121
121
|
```ruby
|
122
122
|
on servers: :your_hostname do
|
@@ -54,7 +54,7 @@ class Cronicle::DSL::Context::Job
|
|
54
54
|
|
55
55
|
if block
|
56
56
|
source = block.to_raw_source(:strip_enclosure => true).each_line.to_a
|
57
|
-
source = source.shift + source.join.unindent
|
57
|
+
source = (source.shift || '') + source.join.unindent
|
58
58
|
|
59
59
|
job_hash[:content] = "#!/usr/bin/env ruby\n"
|
60
60
|
|
@@ -4,6 +4,17 @@ class SSHKit::Backend::Netssh
|
|
4
4
|
SUDO_PASSWORD_KEY = :'__cronicle_sudo_password__'
|
5
5
|
SUDO_PROMPT = '__cronicle_sudo_prompt__'
|
6
6
|
|
7
|
+
alias _execute_orig _execute
|
8
|
+
|
9
|
+
def _execute(*args)
|
10
|
+
begin
|
11
|
+
_execute_orig(*args)
|
12
|
+
rescue => e
|
13
|
+
log_for_cronicle(:error, args.join(' '), :color => :red)
|
14
|
+
raise e
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
7
18
|
def sudo(command, *args)
|
8
19
|
opts = args.last.kind_of?(Hash) ? args.pop : {}
|
9
20
|
|
data/lib/cronicle/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cronicle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Genki Sugawara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sourcify
|