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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55c08587227f16557d6a593632f4be80211529a6
4
- data.tar.gz: fc493ac6139ef47144b822f450c87180b9282d28
3
+ metadata.gz: 9671c2408dcd1e81c18c453cfb0337b37853b444
4
+ data.tar.gz: b0a075f4eb57c43edff84d9d68d08fe6a8af41f2
5
5
  SHA512:
6
- metadata.gz: fc99682523adf3153934dd24bf7da7b9318a8e9ce5e139d7c55aaacfe022d55b6642368999452583809cd5a1e3cc23fdba72bcc3e2c9c0ce07d70933568eb074
7
- data.tar.gz: ca24dc26a7a5ca099bd7b3360f13230cae62c3e8087cd0172910bc1aebad2d083e0badc69f4aedfbc586c54f266f6c45d12b1c4da85d6e34d6b4f990ffb3fe36
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
- ### User bundler
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
- ### User variables
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
 
@@ -1,3 +1,3 @@
1
1
  module Cronicle
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
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.1
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-02-12 00:00:00.000000000 Z
11
+ date: 2015-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sourcify