cider 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/bin/cider +7 -3
- data/lib/cider.rb +17 -0
- data/lib/cider/solo.rb +17 -0
- metadata +20 -3
data/Rakefile
CHANGED
data/bin/cider
CHANGED
data/lib/cider.rb
CHANGED
@@ -1,2 +1,19 @@
|
|
1
|
+
require "json"
|
2
|
+
require "tmpdir"
|
3
|
+
require "rest_client"
|
4
|
+
|
1
5
|
module Cider
|
6
|
+
class Runner
|
7
|
+
def self.run
|
8
|
+
new.run
|
9
|
+
end
|
10
|
+
|
11
|
+
def run
|
12
|
+
system("chef-solo -c #{config}")
|
13
|
+
end
|
14
|
+
|
15
|
+
def config
|
16
|
+
@config ||= File.expand_path(File.join(File.dirname(__FILE__), "cider", "solo.rb"))
|
17
|
+
end
|
18
|
+
end
|
2
19
|
end
|
data/lib/cider/solo.rb
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
#
|
2
|
+
# Chef Solo Config File
|
3
|
+
#
|
4
|
+
require 'tmpdir'
|
5
|
+
|
6
|
+
root = "#{Dir.tmpdir}/cider"
|
7
|
+
|
8
|
+
log_level :info
|
9
|
+
log_location STDOUT
|
10
|
+
|
11
|
+
recipe_url "http://ciderapp.org/cider.tgz"
|
12
|
+
json_attribs "http://ciderapp.org/latest"
|
13
|
+
|
14
|
+
cookbook_path [ "#{root}/smeagol/cookbooks" ]
|
15
|
+
|
16
|
+
file_cache_path "#{root}/cookbooks"
|
17
|
+
cache_options ({ :path => "#{root}/cache/checksums", :skip_expires => true })
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cider
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
- 0
|
9
8
|
- 1
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 0.1.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Corey Donohoe
|
@@ -34,6 +34,22 @@ dependencies:
|
|
34
34
|
requirement: *id001
|
35
35
|
type: :runtime
|
36
36
|
name: chef
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
prerelease: false
|
39
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ~>
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
hash: 7
|
45
|
+
segments:
|
46
|
+
- 1
|
47
|
+
- 4
|
48
|
+
- 0
|
49
|
+
version: 1.4.0
|
50
|
+
requirement: *id002
|
51
|
+
type: :runtime
|
52
|
+
name: rest-client
|
37
53
|
description: The development environment you never wanted to manage alone
|
38
54
|
email: atmos@atmos.org
|
39
55
|
executables:
|
@@ -46,6 +62,7 @@ files:
|
|
46
62
|
- LICENSE
|
47
63
|
- README.md
|
48
64
|
- Rakefile
|
65
|
+
- lib/cider/solo.rb
|
49
66
|
- lib/cider.rb
|
50
67
|
- bin/cider
|
51
68
|
has_rdoc: true
|