rconf 0.9.21 → 0.9.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -79,11 +79,10 @@ module RightConf
79
79
  if (endpoint_snitch)
80
80
  report_check 'Change cassandra configuration.'
81
81
  config_path = File.join(install_path, "apache-cassandra-#{version}", 'conf', 'cassandra.yaml')
82
- backup_path = File.join(install_path, "apache-cassandra-#{version}", 'conf', 'cassandra.yaml.orig')
83
- Command.execute('cp', config_path, backup_path)
84
- Command.execute('sed', '-i', "s%^endpoint_snitch: .*$%endpoint_snitch: #{endpoint_snitch}%", config_path)
82
+ backup_ext = '.orig'
83
+ Command.execute('sed', '-i', backup_ext, '-e', "s%^endpoint_snitch: .*$%endpoint_snitch: #{endpoint_snitch}%", config_path)
85
84
  report_success
86
- post_note "Origin config file in #{backup_path}"
85
+ post_note "Origin config file in #{config_path}#{backup_ext}"
87
86
  end
88
87
  end
89
88
  alias :run_darwin :run_linux
@@ -13,7 +13,7 @@ module RightConf
13
13
 
14
14
  MAJOR = 0
15
15
  MINOR = 9
16
- BUILD = 21
16
+ BUILD = 22
17
17
 
18
18
  VERSION = [MAJOR, MINOR, BUILD].map(&:to_s).join('.')
19
19
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rconf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.21
4
+ version: 0.9.22
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-02 00:00:00.000000000Z
12
+ date: 2012-09-25 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70332318079960 !ruby/object:Gem::Requirement
16
+ requirement: &70104713356220 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '2.5'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70332318079960
24
+ version_requirements: *70104713356220
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: flexmock
27
- requirement: &70332318079280 !ruby/object:Gem::Requirement
27
+ requirement: &70104713355560 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0.9'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70332318079280
35
+ version_requirements: *70104713355560
36
36
  description: ! 'rconf configures the environment for a given application. rconf reads
37
37
 
38
38
  the content of an application configuration file and installs and/or