upstart-exporter 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -7,7 +7,5 @@ gem 'rake'
7
7
  gem 'yard'
8
8
  gem 'redcarpet'
9
9
 
10
- group :test do
11
- gem 'rspec'
12
- gem 'fakefs', :require => 'fakefs/safe'
13
- end
10
+ gem 'rspec'
11
+ gem 'fakefs', :require => 'fakefs/safe'
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  Gem for exporting user-scripts as Upstart scripts
2
2
  ====================
3
3
 
4
+ [![Build Status](https://secure.travis-ci.org/savonarola/upstart-exporter.png)](http://travis-ci.org/savonarola/upstart-exporter)
5
+
4
6
  Purpose
5
7
  -------
6
8
 
data/Rakefile CHANGED
@@ -1 +1,6 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new('spec')
5
+
6
+ task :default => :spec
@@ -41,7 +41,7 @@ script
41
41
  touch /var/log/{{app_name}}/{{cmd_name}}.log
42
42
  chown {{run_user}} /var/log/{{app_name}}/{{cmd_name}}.log
43
43
  exec sudo -u {{run_user}} /bin/sh {{helper_cmd_conf}} >> /var/log/{{app_name}}/{{cmd_name}}.log 2>&1
44
- end
44
+ end script
45
45
  HEREDOC
46
46
 
47
47
  def self.interpolate(str, substitutes)
@@ -1,5 +1,5 @@
1
1
  module Upstart
2
2
  class Exporter
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -44,7 +44,7 @@ script
44
44
  touch /var/log/SOMEAPP/SOMECMD.log
45
45
  chown SOMEUSER /var/log/SOMEAPP/SOMECMD.log
46
46
  exec sudo -u SOMEUSER /bin/sh HELPERPATH >> /var/log/SOMEAPP/SOMECMD.log 2>&1
47
- end
47
+ end script
48
48
  HEREDOC
49
49
 
50
50
  described_class.command(:run_user => 'SOMEUSER', :app_name => 'SOMEAPP', :cmd_name => 'SOMECMD', :helper_cmd_conf => 'HELPERPATH').should == conf
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'bundler/setup'
3
3
 
4
- Bundler.require(:default, :test, :development)
4
+ Bundler.require
5
5
 
6
6
  require 'fakefs/spec_helpers'
7
7
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upstart-exporter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ilya Averyanov
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-22 00:00:00 Z
18
+ date: 2011-12-23 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Gem for converting Procfile-like files to upstart scripts