ucb_deployer 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -4,7 +4,7 @@ require 'echoe'
4
4
  require 'spec/rake/spectask'
5
5
 
6
6
 
7
- Echoe.new('ucb_deployer', '0.3.0') do |p|
7
+ Echoe.new('ucb_deployer', '0.3.1') do |p|
8
8
  p.description = "Tool for deploying Confluence/JIRA war files to tomcat"
9
9
  p.url = "http://ucbrb.rubyforge.org"
10
10
  p.author = "Steven Hansen"
@@ -78,6 +78,10 @@ module UcbDeployer
78
78
  UcbDeployer.debug(str)
79
79
  end
80
80
 
81
+ def info(str)
82
+ UcbDeployer.info(str)
83
+ end
84
+
81
85
  def display_maintenance_file()
82
86
  return unless maintenance_file_dir()
83
87
  maint_start = Time.now.strftime("%m-%d-%Y %H:%M:%S")
@@ -3,23 +3,25 @@ module UcbDeployer
3
3
  class JiraDeployer < Deployer
4
4
 
5
5
  def initialize(config_file = "#{ENV['HOME']}/config/jira/deploy.yml")
6
- debug("Using config file: #{config_file}")
7
- debug("")
6
+ info("Using config file: #{config_file}")
7
+ info("")
8
+
8
9
  load_config(config_file)
9
10
  end
10
11
 
11
12
  def export()
12
- UcbDeployer.debug("Exporting from: #{svn_project_url}/jira-#{version}")
13
+ info("Exporting from: #{svn_project_url}/jira-#{version}")
14
+
13
15
  pwd = Dir.getwd()
14
16
  Dir.chdir("#{build_dir}")
15
17
  FileUtils.rm_rf("#{build_dir}/src")
16
18
  `svn export svn+ssh://#{svn_username}@#{svn_project_url}/jira-#{version}`
17
19
  FileUtils.mv("jira-#{version}", "src")
18
20
  Dir.chdir(pwd)
19
- $stdout.puts("Export Completed")
20
21
  end
21
22
 
22
23
  def configure()
24
+ info("Configuring application.")
23
25
  config_web_xml()
24
26
  config_seraph_config_xml()
25
27
  config_entityengine_xml()
@@ -29,6 +31,8 @@ module UcbDeployer
29
31
  end
30
32
 
31
33
  def build()
34
+ info("Building application.")
35
+
32
36
  pwd = Dir.getwd()
33
37
  Dir.chdir("#{build_dir}/src")
34
38
  `sh #{build_dir}/src/build.sh`
@@ -36,6 +40,8 @@ module UcbDeployer
36
40
  end
37
41
 
38
42
  def deploy()
43
+ info("Deploying application.")
44
+
39
45
  if File.exists?("#{deploy_dir}/#{war_name}")
40
46
  FileUtils.rm_rf(Dir["#{deploy_dir}/#{war_name}"])
41
47
  end
data/lib/ucb_deployer.rb CHANGED
@@ -39,7 +39,11 @@ module UcbDeployer
39
39
  $stdout.puts(str)
40
40
  end
41
41
  end
42
-
42
+
43
+ def self.info(str)
44
+ $stdout.puts(str)
45
+ end
46
+
43
47
  def self.debug_mode
44
48
  @debug_mode || false
45
49
  end
data/ucb_deployer.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{ucb_deployer}
5
- s.version = "0.3.0"
5
+ s.version = "0.3.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Steven Hansen"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ucb_deployer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steven Hansen