citrin 0.1.3 → 0.1.4

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/citrin.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "citrin"
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mike"]
@@ -8,8 +8,10 @@ module Commands
8
8
  template_file = logrotate_config_template(@app)
9
9
  template = ERB.new(File.read(template_file), 0, "%<>")
10
10
  result = template.result(binding)
11
- `sudo sh -c 'echo "#{result}" > /etc/logrotate.d/rails-app-#{@app.name}'`
12
-
11
+ output_file = "/etc/logrotate.d/rails-app-#{@app.name}"
12
+ puts "Creating logrotate config file at #{output_file}"
13
+ puts result
14
+ `sudo sh -c 'echo "#{result}" > #{output_file}'`
13
15
  end
14
16
  end
15
17
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: citrin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: