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 +4 -4
- data/README.md +16 -0
- data/lib/cronicle/ext/sshkit_ext.rb +1 -1
- data/lib/cronicle/version.rb +1 -1
- data/spec/cronicle_exec_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ab2deb3ba9285f2dec3ebeacc4193ef90361323f
|
4
|
+
data.tar.gz: 0455f1075b0a0a952077908ae455154b118beafe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 << ",
|
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(' ')
|
data/lib/cronicle/version.rb
CHANGED
data/spec/cronicle_exec_spec.rb
CHANGED
@@ -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:
|
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"
|