garcun 0.0.6 → 0.0.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: 534ff5ca37e8ba3c48c8f2c3dd56703e18863e40
4
- data.tar.gz: f3c6315186cc85a6086a565b71ab49f40baafa2c
3
+ metadata.gz: 26509b8fe8fbb0ccb4823f7447687b5d43bc20e1
4
+ data.tar.gz: ef77e6ed6bd33be45884cac2a74440b1b242fedb
5
5
  SHA512:
6
- metadata.gz: 44d9005d6bc2a85284b48f0582b8b0839e4071eca2ebdab6f52a8f92439111257d89d28e8538cc7f76080c3d3ca03cd51eb3709eb928cc24d6dc53c58cb09b58
7
- data.tar.gz: a0eff4b8819f6c84aca4161c7b546716c0f84dff280dedf1ed679d61e19ad1cf2259170795e8cd35aa57e9b42cafff6e7c51017591e58d48cb0536d5324a7026
6
+ metadata.gz: c0b99adc4e2650a5b7097d42a223267f213688601a98dcdeea9bb4bbea62318d864d5f9c9d416f10e1673d60fdcc1287519b0f989c75a9ce12a5cff9e4ee85d3
7
+ data.tar.gz: 477453d862566537cc766fc0c7e8605907e41778af47789b89a892130adeda034e49caa521d38c31aa57b0f1e4f5ccaaaa6249bef46b19ae59267496f41a934d
@@ -36,6 +36,13 @@ module Garcon
36
36
  node
37
37
  end
38
38
 
39
+ def platform_recipes
40
+ case node[:platform]
41
+ when 'debian', 'ubuntu'
42
+ run_context.include_recipe 'apt::default'
43
+ end
44
+ end
45
+
39
46
  # Boolean indicating if the given Ruby Gem is installed.
40
47
  #
41
48
  # @param [String] gem
@@ -87,6 +87,7 @@ class Chef
87
87
  end
88
88
 
89
89
  def action_run
90
+ platform_recipes
90
91
  civilize_platform
91
92
  civilize_locale
92
93
  civilize_docker if docker? && r.docker
@@ -124,19 +125,10 @@ class Chef
124
125
  def civilize_platform
125
126
  case node[:platform]
126
127
  when 'debian', 'ubuntu'
127
- run_context.include_recipe 'apt::default'
128
128
  run_context.include_recipe 'motd-tail::default'
129
129
  m = Chef::Resource::MotdTail.new('/etc/motd.tail', run_context)
130
130
  m.template_source 'motd.erb'
131
131
  m.action :create
132
- when 'fedora'
133
- run_context.include_recipe 'yum-fedora::default'
134
- when 'centos'
135
- run_context.include_recipe 'yum-epel::default'
136
- run_context.include_recipe 'yum-centos::default'
137
- when 'amazon'
138
- run_context.include_recipe 'yum-epel::default'
139
- run_context.include_recipe 'yum-amazon::default'
140
132
  end
141
133
  end
142
134
 
@@ -66,6 +66,7 @@ class Chef
66
66
  end
67
67
 
68
68
  def action_run
69
+ platform_recipes
69
70
  chef_handler
70
71
  install_gem('pry')
71
72
  Chef::Recipe.send(:require, 'pry')
@@ -27,7 +27,7 @@ module Garcon
27
27
  module Version
28
28
  MAJOR = 0
29
29
  MINOR = 0
30
- PATCH = 6
30
+ PATCH = 7
31
31
 
32
32
  # Returns a version string by joining MAJOR, MINOR, and PATCH with '.'
33
33
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: garcun
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefano Harding
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-31 00:00:00.000000000 Z
11
+ date: 2015-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef