instructions_list 0.1.8.beta → 0.1.9.beta

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c05863aefeb63689a5698018afda059084423b9
4
- data.tar.gz: f6a3f70cd5ee3eb3cd5e496b1dfccf10c536d433
3
+ metadata.gz: eeeb7b989e730f0e09c81a00a85debaa0b74ff18
4
+ data.tar.gz: 55b67350b31507b2b51239c2547d8656e5ae5ad1
5
5
  SHA512:
6
- metadata.gz: a2c40ef3c4e89727e9ca4edcc20246a05ed20df80c506d4d0c0cb39170de05f27b906e0b8747f717ce0c28436e24e7d878d04070d7371607c3de567bcd350b0a
7
- data.tar.gz: b7dc016cc4fc4a079d2af9a5cea286638415218ca59c50ea367e7379b362db1f40e4d1ecae7b9c473c0763088b9d9c9d8ed66b230ff431d0ea8a21ca4f890c11
6
+ metadata.gz: 5f2cb6aa6e1ff73cc11491a40b37e52fd812f2abee91bafffe71fe6af804a265b8f7439df37eb6c57e510ad1d01efa78477c009253a7b507f237c8f92bb2c658
7
+ data.tar.gz: 4dbea52633b7e12316286f298ff06c5335960f27955e22d8a05c241af6306cceaee6a7edf0aefa2b992eb924166a9afc4d6a9849fc8f56e07318fbee99c105d1
@@ -1,3 +1,3 @@
1
1
  module InstructionsList
2
- VERSION = "0.1.8.beta"
2
+ VERSION = "0.1.9.beta"
3
3
  end
@@ -8,13 +8,12 @@ module InstructionsList
8
8
  return false unless File.exists? "./.instructions/state"
9
9
  File.readlines("./.instructions/state").include? "#{name}\n"
10
10
  end
11
- # def self.running? name
12
- # #code
13
- # end
14
- # def self.installed? exe_path
15
- # end
16
- # def self.exists? context,path
17
- # end
11
+ def self.running? name
12
+ !`ps aux | grep #{name} | grep -v grep`.empty?
13
+ end
14
+ def self.installed? path
15
+ !`[ -d "#{path}"]`.empty?
16
+ end
18
17
  end
19
18
 
20
19
  class Instruction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: instructions_list
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.beta
4
+ version: 0.1.9.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Coco Coder (aka Delaney Burke)