cronicle 0.1.6 → 0.1.7

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: 90a9b9808f5544209161321c06c465715a6f07dd
4
- data.tar.gz: 3a63c1278482a6a6af9dc9e57c3a873ac81989ed
3
+ metadata.gz: ab2deb3ba9285f2dec3ebeacc4193ef90361323f
4
+ data.tar.gz: 0455f1075b0a0a952077908ae455154b118beafe
5
5
  SHA512:
6
- metadata.gz: f85ee6ee7e0e12e391282895c63400bf627ad6f7f8b30b541b2a56badcbdca2627d5d57408fb502e421246243154d174983da49877601a179257f96a69d1fc29
7
- data.tar.gz: ffe7a07a5c8f8bbd1faa49e06495f4027ba59eb32229c9e92b0ef8546340a2eab330518e799abffb00f41bda340d599b56ba15f6751264f3c98ea1f22115f43c
6
+ metadata.gz: fbac06c3f93f366417ac4cd6e08c56eef00b045dd14c594f1aac7e50e6e7e92331c3f075099382b86da758aaac1f2cd6d8904543682e55f69d713430127cbf0e
7
+ data.tar.gz: 6517c89be43f2e0ab5367ceb8c34304c9ca28ce775a2aeea18f69fc9759c29c2eeead3e14c7831787a963bf2e17491b9ea5e4656c0d6d75be2be9c2c906e658a
data/README.md CHANGED
@@ -115,6 +115,22 @@ on servers: :your_hostname do
115
115
  end
116
116
  ```
117
117
 
118
+ ### User variables
119
+
120
+ ```ruby
121
+ on servers: :your_hostname do
122
+ job :my_job, user: "ec2-user", schedule: "* * * * *", locals: {foo: 'bar'} do
123
+ puts foo
124
+ end
125
+
126
+ job :my_job2, user: :root, schedule: "* * * * *", extra: "FOO=bar\nZOO=baz", content <<-SH
127
+ #!/bin/sh
128
+ echo $FOO
129
+ echo $ZOO
130
+ SH
131
+ end
132
+ ```
133
+
118
134
  ## Hosts definition file
119
135
 
120
136
  Any of the following formats:
@@ -133,7 +133,7 @@ class SSHKit::Backend::Netssh
133
133
 
134
134
  bundle_gems.each do |gem_name, version|
135
135
  line = "gem '#{gem_name}'"
136
- line << ", '#{version}'" if version
136
+ line << ", #{version.inspect}" if version
137
137
  sudo(:execute, :bash, '-c',
138
138
  Shellwords.shellescape(
139
139
  [:echo, Shellwords.shellescape(line), '>>', gemfile(user, name, temp_dir)].join(' ')
@@ -1,3 +1,3 @@
1
1
  module Cronicle
2
- VERSION = '0.1.6'
2
+ VERSION = '0.1.7'
3
3
  end
@@ -177,7 +177,7 @@ describe 'Cronicle::Client#exec' do
177
177
  end
178
178
 
179
179
  on servers: /ubuntu/ do
180
- job :foo, user: :ubuntu, bundle: 'hashie' do
180
+ job :foo, user: :ubuntu, bundle: {hashie: {require: false}} do
181
181
  require 'hashie'
182
182
  mash = Hashie::Mash.new
183
183
  mash.name = "My Mash on ubuntu"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cronicle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara