ps-voodoo 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -5,5 +5,5 @@
5
5
  TODO.md
6
6
  lib/voodoo/commands/test.rb
7
7
  pkg
8
-
9
8
  .DS_Store
9
+ Gemfile.lock
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ps-voodoo (0.0.6)
4
+ ps-voodoo (0.0.7)
5
5
  commander (= 4.0.4)
6
6
  terminal-table (>= 1.4.2)
7
7
 
@@ -11,9 +11,10 @@ GEM
11
11
  commander (4.0.4)
12
12
  highline (>= 1.5.0)
13
13
  highline (1.6.2)
14
- terminal-table (1.4.2)
14
+ terminal-table (1.4.3)
15
15
 
16
16
  PLATFORMS
17
+ ruby
17
18
  x86-mingw32
18
19
 
19
20
  DEPENDENCIES
@@ -1,5 +1,10 @@
1
1
  # Changelog #
2
2
 
3
+ ## Version 0.0.8 ##
4
+
5
+ * changed logging prompt
6
+ * modified the run commands to launch sqr and appengine processes in the background
7
+
3
8
  ## Version 0.0.6 ##
4
9
 
5
10
  * removed archive prompting for environments without one specified in the configuration
@@ -12,7 +12,8 @@ module Voodoo
12
12
  LOG = Logger.new(STDOUT)
13
13
  LOG.level = Logger::INFO
14
14
  LOG.formatter = proc { |severity, datetime, progname, msg|
15
- "#{Time.now.strftime("%m/%d/%Y %H:%M:%S")}: #{msg}\n"
15
+ #"#{Time.now.strftime("%m/%d/%Y %H:%M:%S")}: #{msg}\n"
16
+ ">>> #{msg}\n"
16
17
  }
17
18
 
18
19
  def self.show_debugging
@@ -15,9 +15,25 @@ module Voodoo
15
15
  append(:env_password => target.app_password)
16
16
  append(:r => '1')
17
17
  append(:ae_name => ae_name)
18
- puts "Running #{ae_name}..."
18
+ #puts "Running #{ae_name}..."
19
+ LOG.info("Running #{ae_name}...")
19
20
  call_executable
20
21
  end
21
22
 
23
+ def call_executable
24
+ LOG.debug("Executable is set to #{@executable}")
25
+ LOG.debug("Command line options are set to #{@command_line_options.join(" ")}")
26
+
27
+ #f = IO.popen(@executable + " " + @command_line_options.join(" "))
28
+ #f.readlines.each { |line| puts ("#{line.chomp}")}
29
+ #f.close
30
+ pid = spawn("start " + @executable + " " + @command_line_options.join(" "))
31
+ LOG.debug("Created background process #{pid} for #{@executable}")
32
+ Process.detach(pid)
33
+
34
+ @command_line_options.clear
35
+ set_base_parameters
36
+ end
37
+
22
38
  end
23
39
  end
@@ -23,7 +23,8 @@ module Voodoo
23
23
  append(:xmb=> true)
24
24
  append(:xcb=> true)
25
25
  append(:debug=> true)
26
- puts "Running #{@sqr_name}..."
26
+ LOG.info("Running #{@sqr_name}...")
27
+ #puts "Running #{@sqr_name}..."
27
28
  call_executable
28
29
  end
29
30
 
@@ -58,9 +59,12 @@ module Voodoo
58
59
  LOG.debug("Executable is set to #{@executable}")
59
60
  LOG.debug("Command line options are set to #{@command_line_options.join(" ")}")
60
61
 
61
- f = IO.popen(@executable + " " + @command_line_options.join(" "))
62
- f.readlines.each { |line| puts ("#{line.chomp}")}
63
- f.close
62
+ #f = IO.popen(@executable + " " + @command_line_options.join(" "))
63
+ #f.readlines.each { |line| puts ("#{line.chomp}")}
64
+ #f.close
65
+ pid = spawn(@executable + " " + @command_line_options.join(" "))
66
+ LOG.debug("Created background process #{pid} for #{@executable}")
67
+ Process.detach(pid)
64
68
 
65
69
  @command_line_options.clear
66
70
  end
@@ -1,3 +1,3 @@
1
1
  module Voodoo
2
- VERSION = '0.0.7'
2
+ VERSION = '0.0.8'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ps-voodoo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
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: 2011-09-30 00:00:00.000000000Z
12
+ date: 2011-11-02 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: commander
16
- requirement: &9750936 !ruby/object:Gem::Requirement
16
+ requirement: &9915216 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 4.0.4
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *9750936
24
+ version_requirements: *9915216
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: terminal-table
27
- requirement: &9750624 !ruby/object:Gem::Requirement
27
+ requirement: &9917196 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 1.4.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *9750624
35
+ version_requirements: *9917196
36
36
  description: A small command line utility for helping with PeopleSoft administration
37
37
  email:
38
38
  - jrbing@gmail.com