rconf 0.5.8 → 0.5.9

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.
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  tags
2
2
  pkg/*
3
+ .rvmrc
data/bin/rconf CHANGED
@@ -94,7 +94,7 @@ where [options] are:
94
94
  report("Successfully configured #{File.basename(options[:config], '.rc').blue} for #{Platform.family.to_s.blue}")
95
95
  rescue Exception => e
96
96
  raise if e.is_a?(SystemExit)
97
- report_fatal("Execution failed with exception '#{e.message.red}'\n#{e.backtrace.join("\n").map(&:grey)}")
97
+ report_fatal("Execution failed with exception '#{e.message.red}'\n#{e.backtrace.join("\n").grey}")
98
98
  ensure
99
99
  lang.configurators.each { |c| report("\n!!NOTE: #{c.post_note}\n".green) if c.post_note }
100
100
  end
@@ -9,6 +9,8 @@
9
9
  # License Agreement between RightScale.com, Inc. and
10
10
  # the licensee
11
11
 
12
+ require 'yaml'
13
+
12
14
  module RightConf
13
15
 
14
16
  class Profile
@@ -19,7 +21,7 @@ module RightConf
19
21
  def initialize
20
22
  if File.exist?(profile_path)
21
23
  @profile = YAML.load(IO.read(profile_path)) rescue {}
22
- puts "LOADED PROFILE: #{@profile}"
24
+ @profile = {} unless @profile.is_a?(Hash)
23
25
  else
24
26
  @profile = {}
25
27
  end
@@ -13,7 +13,7 @@ module RightConf
13
13
 
14
14
  MAJOR = 0
15
15
  MINOR = 5
16
- BUILD = 8
16
+ BUILD = 9
17
17
 
18
18
  VERSION = [MAJOR, MINOR, BUILD].map(&:to_s).join('.')
19
19
 
@@ -0,0 +1,7 @@
1
+ # Configuration settings for RightSite
2
+ ruby do
3
+ version 'ruby-1.9.2-p136'
4
+ rubygems '1.3.7'
5
+ gemset 'rconf'
6
+ end
7
+
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rconf
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 5
9
- - 8
10
- version: 0.5.8
4
+ prerelease:
5
+ version: 0.5.9
11
6
  platform: ruby
12
7
  authors:
13
8
  - Raphael Simon
@@ -26,10 +21,6 @@ dependencies:
26
21
  requirements:
27
22
  - - ~>
28
23
  - !ruby/object:Gem::Version
29
- hash: 9
30
- segments:
31
- - 2
32
- - 5
33
24
  version: "2.5"
34
25
  type: :development
35
26
  version_requirements: *id001
@@ -41,10 +32,6 @@ dependencies:
41
32
  requirements:
42
33
  - - ~>
43
34
  - !ruby/object:Gem::Version
44
- hash: 25
45
- segments:
46
- - 0
47
- - 9
48
35
  version: "0.9"
49
36
  type: :development
50
37
  version_requirements: *id002
@@ -92,6 +79,7 @@ files:
92
79
  - lib/rconf/trollop.rb
93
80
  - lib/rconf/version.rb
94
81
  - rconf.gemspec
82
+ - rconf.rc
95
83
  - spec/command_spec.rb
96
84
  - spec/configurator_spec.rb
97
85
  - spec/configurators/bundler_configurator_spec.rb
@@ -119,23 +107,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
107
  requirements:
120
108
  - - ">="
121
109
  - !ruby/object:Gem::Version
122
- hash: 3
123
- segments:
124
- - 0
125
110
  version: "0"
126
111
  required_rubygems_version: !ruby/object:Gem::Requirement
127
112
  none: false
128
113
  requirements:
129
114
  - - ">="
130
115
  - !ruby/object:Gem::Version
131
- hash: 3
132
- segments:
133
- - 0
134
116
  version: "0"
135
117
  requirements: []
136
118
 
137
119
  rubyforge_project: rconf
138
- rubygems_version: 1.3.7
120
+ rubygems_version: 1.5.0
139
121
  signing_key:
140
122
  specification_version: 3
141
123
  summary: Cross platform environment configuration