rconf 0.8.8 → 0.8.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -151,11 +151,8 @@ module RightConf
151
151
  Command.execute_in_ruby('passenger-install-nginx-module', '--auto',
152
152
  '--auto-download', '--prefix', install_path,
153
153
  :abort_on_failure => "Failed to install nginx into #{install_path}")
154
- FileUtils.mkdir_p(File.join(install_path, 'sites-enabled'))
155
154
  FileUtils.mkdir_p(File.join(install_path, 'logs'))
156
155
  File.open(File.join(install_path, 'conf', 'nginx.conf'), 'w') { |f| f.puts(nginx_config) }
157
- File.open(File.join(install_path, 'sites-enabled', 'right_site'), 'w') { |f| f.puts(right_site_config) }
158
- File.open(File.join(install_path, 'sites-enabled', 'library'), 'w') { |f| f.puts(library_config) }
159
156
  if File.writable?('/etc/hosts') && IO.read('/etc/hosts') !~ /hosts_entry/
160
157
  File.open('/etc/hosts', 'a') { |f| f.puts hosts_entry }
161
158
  else
data/lib/rconf/version.rb CHANGED
@@ -13,7 +13,7 @@ module RightConf
13
13
 
14
14
  MAJOR = 0
15
15
  MINOR = 8
16
- BUILD = 8
16
+ BUILD = 9
17
17
 
18
18
  VERSION = [MAJOR, MINOR, BUILD].map(&:to_s).join('.')
19
19
 
@@ -21,7 +21,7 @@ describe RightConf::Configurator do
21
21
  def test_setter(value)
22
22
  @custom_setting = value
23
23
  end
24
- def check_darwin; end
24
+ def check_darwin; true; end
25
25
  alias :check_linux :check_darwin
26
26
  alias :check_windows :check_darwin
27
27
  def run_darwin; end
@@ -60,6 +60,8 @@ describe RightConf::Configurator do
60
60
 
61
61
  it 'should check' do
62
62
  flexmock(RightConf::Profile.instance).should_receive(:configurator_signature).and_return(@configurator.signature)
63
+ flexmock(RightConf::Profile.instance).should_receive(:force_reconfigure?).and_return(false)
64
+ flexmock(RightConf::Profile.instance).should_receive(:force_check?).and_return(false)
63
65
  flexmock(RightConf::Platform.instance).should_receive(:dispatch).never
64
66
  @configurator.run
65
67
  end
@@ -78,6 +80,8 @@ describe RightConf::Configurator do
78
80
  it 'should skip configurators that have already run' do
79
81
  flexmock(RightConf::Profile.instance).should_receive(:configurator_signature).with('test-1').and_return('42')
80
82
  flexmock(@configurator).should_receive(:signature).and_return('42')
83
+ flexmock(RightConf::Profile.instance).should_receive(:force_reconfigure?).and_return(false)
84
+ flexmock(RightConf::Profile.instance).should_receive(:force_check?).and_return(false)
81
85
  flexmock(RightConf::Platform.instance).should_receive(:dispatch).never
82
86
  @configurator.run
83
87
  end
metadata CHANGED
@@ -1,71 +1,52 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rconf
3
- version: !ruby/object:Gem::Version
4
- hash: 47
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 8
9
- - 8
10
- version: 0.8.8
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.9
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Raphael Simon
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-05-31 00:00:00 -07:00
12
+ date: 2011-06-10 00:00:00.000000000 -07:00
19
13
  default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: rspec
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &21389680 !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
19
+ requirements:
27
20
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 9
30
- segments:
31
- - 2
32
- - 5
33
- version: "2.5"
21
+ - !ruby/object:Gem::Version
22
+ version: '2.5'
34
23
  type: :development
35
- version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: flexmock
38
24
  prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *21389680
26
+ - !ruby/object:Gem::Dependency
27
+ name: flexmock
28
+ requirement: &21388920 !ruby/object:Gem::Requirement
40
29
  none: false
41
- requirements:
30
+ requirements:
42
31
  - - ~>
43
- - !ruby/object:Gem::Version
44
- hash: 25
45
- segments:
46
- - 0
47
- - 9
48
- version: "0.9"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.9'
49
34
  type: :development
50
- version_requirements: *id002
51
- description: |
52
- rconf configures the environment for a given application. rconf reads
53
- the content of an application configuration file and installs and/or
54
- configures the required tools for running or developing the corresponding
55
- application. rconf can easily be extended to configure new tools and makes
56
- it easy to support multiple platforms.
57
- Consult the README.rdoc file for information on how to write rconf
58
- configuration files.
59
-
60
- email:
35
+ prerelease: false
36
+ version_requirements: *21388920
37
+ description: ! "rconf configures the environment for a given application. rconf reads\nthe
38
+ content of an application configuration file and installs and/or\nconfigures the
39
+ required tools for running or developing the corresponding\napplication. rconf can
40
+ easily be extended to configure new tools and makes\nit easy to support multiple
41
+ platforms.\nConsult the README.rdoc file for information on how to write rconf \nconfiguration
42
+ files.\n"
43
+ email:
61
44
  - raphael@rightscale.com
62
- executables:
45
+ executables:
63
46
  - rconf
64
47
  extensions: []
65
-
66
48
  extra_rdoc_files: []
67
-
68
- files:
49
+ files:
69
50
  - .gitignore
70
51
  - Gemfile
71
52
  - README.rdoc
@@ -123,38 +104,29 @@ files:
123
104
  has_rdoc: true
124
105
  homepage: http://rubygems.org/gems/rconf
125
106
  licenses: []
126
-
127
107
  post_install_message:
128
108
  rdoc_options: []
129
-
130
- require_paths:
109
+ require_paths:
131
110
  - lib
132
- required_ruby_version: !ruby/object:Gem::Requirement
111
+ required_ruby_version: !ruby/object:Gem::Requirement
133
112
  none: false
134
- requirements:
135
- - - ">="
136
- - !ruby/object:Gem::Version
137
- hash: 3
138
- segments:
139
- - 0
140
- version: "0"
141
- required_rubygems_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - ! '>='
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
142
118
  none: false
143
- requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- hash: 3
147
- segments:
148
- - 0
149
- version: "0"
119
+ requirements:
120
+ - - ! '>='
121
+ - !ruby/object:Gem::Version
122
+ version: '0'
150
123
  requirements: []
151
-
152
124
  rubyforge_project: rconf
153
- rubygems_version: 1.3.7
125
+ rubygems_version: 1.6.2
154
126
  signing_key:
155
127
  specification_version: 3
156
128
  summary: Cross platform environment configuration
157
- test_files:
129
+ test_files:
158
130
  - spec/command_spec.rb
159
131
  - spec/configurator_spec.rb
160
132
  - spec/configurators/build_configurator_spec.rb