cider 0.0.1 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/Rakefile +1 -1
  2. data/bin/cider +7 -3
  3. data/lib/cider.rb +17 -0
  4. data/lib/cider/solo.rb +17 -0
  5. metadata +20 -3
data/Rakefile CHANGED
@@ -3,7 +3,7 @@ require 'rubygems/specification'
3
3
  require 'bundler'
4
4
 
5
5
  GEM = "cider"
6
- GEM_VERSION = "0.0.1"
6
+ GEM_VERSION = "0.1.0"
7
7
  AUTHOR = "Corey Donohoe"
8
8
  EMAIL = "atmos@atmos.org"
9
9
  HOMEPAGE = "http://github.com/atmos/cider"
data/bin/cider CHANGED
@@ -1,5 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'rubygems'
4
- require 'cider'
5
- require 'optparse'
3
+ require "rubygems"
4
+ require "cider"
5
+ require "optparse"
6
+
7
+ Cider::Runner.run
8
+
9
+ # vim:ft=ruby
@@ -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
@@ -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: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 0
9
8
  - 1
10
- version: 0.0.1
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