server_launcher 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -15,13 +15,13 @@ Or install it yourself as:
15
15
  $ gem install server_launcher
16
16
 
17
17
  ## Usage
18
-
19
- server = TomcatServer.new(:app_server_home => app_server_home, :deploy_dir => deploy_dir,
18
+
19
+ server = TomcatServer.new(:app_server_home => app_server_home, :deploy_dir => deploy_dir,
20
20
  :project_name => project_name, :warfile => warfile, :logfile => logfile)
21
21
 
22
- server.execute :start
23
- server.execute :stop
24
- server.execute :deploy
22
+ server.execute :start
23
+ server.execute :stop
24
+ server.execute :deploy
25
25
 
26
26
 
27
27
  ## Contributing
@@ -12,7 +12,7 @@ class JBossServer < Server
12
12
  def stop
13
13
  # #puts `#{app_server_home}/bin/jboss-admin.sh --connect command=:shutdown`
14
14
  "#{app_server_home}/bin/shutdown.sh -S"
15
- end
15
+ end
16
16
 
17
17
  def start env=nil
18
18
  #"LAUNCH_JBOSS_IN_BACKGROUND=true #{app_server_home}/bin/standalone.sh"
@@ -1,7 +1,9 @@
1
1
  require 'meta_methods'
2
+ require 'file_utils'
2
3
 
3
4
  class Server
4
5
  include MetaMethods
6
+ include FileUtils
5
7
 
6
8
  def initialize params={}
7
9
  define_attributes(:attr_reader, self, params, false)
@@ -29,8 +31,8 @@ class Server
29
31
 
30
32
  output, error, status = *execute_command(command)
31
33
 
32
- puts "Output:\n #{output}" if output && output.size > 0
33
- puts "Error: #{error}" if error && error.size > 0
34
+ puts "Output:\n #{output.join(" ")}" if output && output.size > 0
35
+ puts "Error: #{error.join(" ")}" if error && error.size > 0
34
36
  puts "Status: #{status}" if status && status.to_s.to_i > 0
35
37
  end
36
38
  end
@@ -1,3 +1,3 @@
1
1
  module ServerLauncher
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: server_launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-05 00:00:00.000000000 Z
12
+ date: 2012-10-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: meta_methods
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  requirements: []
133
133
  rubyforge_project:
134
- rubygems_version: 1.8.23
134
+ rubygems_version: 1.8.24
135
135
  signing_key:
136
136
  specification_version: 3
137
137
  summary: Convenient classes to manage servers from rake