necktie 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/bin/necktie CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
- $LOAD_PATH.unshift File.expand_path("../lib", File.dirname(__FILE__)), File.expand_path("../rush/lib", File.dirname(__FILE__))
2
+ $LOAD_PATH.unshift File.expand_path("../lib", File.dirname(__FILE__)),
3
+ File.expand_path("../rush/lib", File.dirname(__FILE__)), File.expand_path("../session/lib", File.dirname(__FILE__))
3
4
  require "necktie"
4
5
  necktie ARGV
@@ -27,7 +27,7 @@ module Services
27
27
  end
28
28
 
29
29
  def self.status(name)
30
- status = File.read("|sudo service --status-all 2>&1")[/^ \[ (.) \] #{Regexp.escape name}$/,1]
31
- stauts == "+" ? true : status == "-" ? false : nil
30
+ status = File.read("|service --status-all 2>&1")[/^ \[ (.) \] #{Regexp.escape name}$/,1]
31
+ status == "+" ? true : status == "-" ? false : nil
32
32
  end
33
33
  end
data/lib/necktie.rb CHANGED
@@ -4,8 +4,6 @@ require "necktie/gems"
4
4
  require "necktie/services"
5
5
  require "necktie/rush"
6
6
 
7
- puts launch_dir
8
- exit!
9
7
 
10
8
  def necktie(args)
11
9
  etc = "/etc/necktie"
data/necktie.gemspec CHANGED
@@ -1,12 +1,12 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "necktie"
3
- spec.version = "0.2.0"
3
+ spec.version = "0.2.1"
4
4
  spec.author = "Assaf Arkin"
5
5
  spec.email = "assaf@labnotes.org"
6
6
  spec.homepage = ""
7
7
  spec.summary = "Dress to impress"
8
8
  spec.description = ""
9
9
 
10
- spec.files = Dir["{bin,lib,rush}/**/*", "*.{gemspec,rdoc}"]
10
+ spec.files = Dir["{bin,lib,rush,session}/**/*", "*.{gemspec,rdoc}"]
11
11
  spec.executable = "necktie"
12
12
  end