toque 1.0.0 → 1.1.0

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: 728adde958810a994d9d16b9d51d2f8cd31ef9dd
4
- data.tar.gz: f56fb4afebd0bfc9defe5a9e995a4f26a4466f17
3
+ metadata.gz: 448b10e7713de07a35d214f3ed5693cebb4f94ac
4
+ data.tar.gz: e15016d9d28df39fc514d3c39409d3f1a2ef36e5
5
5
  SHA512:
6
- metadata.gz: 2c689a0d5f297ed1cbd9c4fba502ecf4ab918770afe4eef89c936d1a207dc3593d85e476c5ce127a2e384d1d23d50cb036d4c46c905b0fc938c02cd16ada185f
7
- data.tar.gz: d13815fc714a02a45cb16a4fb3a783e970b3761910b5387078a3aa8464cf0401104fcc7de1b1b21b5b39716174ad1ca826e4af7b6b9269b9e2a4561ee1c297cd
6
+ metadata.gz: d7218962dbf656cc07ecf4b85187ba59711800234cb9c9f5d2a55b3990e2447ce4c008b9bbf5372c7de1c7f37fd980842de3e25370fa8535d369c708dda0a4f8
7
+ data.tar.gz: 12abda9ee2c118d09b04ba1e76e000e0a12f999aa4a80a6caaac287e688ff1e17237e4c0bc9dc22cde5591563b716b402a8e74089292a42d298a309a6d656802
data/Capfile CHANGED
@@ -1,3 +1,3 @@
1
1
  load 'deploy'
2
- load 'spec/config/deploy'
2
+ #load 'spec/config/deploy'
3
3
  require 'toque'
data/README.md CHANGED
@@ -64,9 +64,11 @@ end
64
64
  After deploying your app you may need to create a config for your application
65
65
  like `database.yml` or redis configuration:
66
66
 
67
+ ```ruby
67
68
  after "deploy:create_symlink" do
68
69
  toque.run_list 'recipe[awesome::configure]'
69
70
  end
71
+ ```
70
72
 
71
73
  ## Configuration
72
74
 
@@ -88,6 +90,21 @@ template File.join(node[:deploy_to], 'config', 'database.yml') do
88
90
  end
89
91
  ```
90
92
 
93
+ ### Available options
94
+
95
+ ```bash
96
+ $ bundle exec cap toque:config
97
+ * 2013-04-07 21:35:46 executing `toque:config'
98
+ set :chef_debug, false
99
+ set :chef_omnibus_installer_url, "http://www.opscode.com/chef/install.sh"
100
+ set :chef_solo, "/opt/chef/bin/chef-solo"
101
+ set :chef_version, :latest
102
+ set :cookbooks_paths, ["config/cookbooks", "vendor/cookbooks"]
103
+ set :databags_path, "config/databags"
104
+ set :toque_pwd, "/tmp/toque"
105
+
106
+ ```
107
+
91
108
  ## Thanks
92
109
 
93
110
  Thanks to [roundsman](https://github.com/iain/roundsman) doing even some more
data/lib/toque/chef.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require 'tempfile'
2
+ require 'multi_json'
2
3
 
3
4
  module Toque
4
5
 
@@ -118,7 +119,7 @@ module Toque
118
119
 
119
120
  attrs = variables.dup
120
121
  attrs[:run_list] = recipes
121
- put attrs.to_json, pwd("node.json"), :via => :scp
122
+ put MultiJson.dump(attrs), pwd("node.json"), :via => :scp
122
123
  end
123
124
  end
124
125
 
data/lib/toque/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Toque
2
2
  module VERSION
3
3
  MAJOR = 1
4
- MINOR = 0
4
+ MINOR = 1
5
5
  PATCH = 0
6
6
  STAGE = nil
7
7
 
data/toque.gemspec CHANGED
@@ -19,4 +19,5 @@ Gem::Specification.new do |spec|
19
19
  spec.require_paths = %w(lib)
20
20
 
21
21
  spec.add_dependency 'capistrano'
22
+ spec.add_dependency 'multi_json'
22
23
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toque
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Graichen
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: multi_json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  description: 'Toque: Cap of a Chef. Integrate Chef into Capistrano.'
28
42
  email:
29
43
  - jg@altimos.de