gap 0.0.14 → 0.0.15

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.
data/lib/gap/patch.rb CHANGED
@@ -41,7 +41,7 @@ module Capistrano
41
41
  config.send(:extend,Gap::Tasks)
42
42
  config.send(:extend,Gap::SudoRun)
43
43
  config.load do
44
- set :rvm_ruby_string, nil
44
+ config.init_val
45
45
 
46
46
  gap_config.each do |env,value|
47
47
 
@@ -7,10 +7,16 @@ namespace :god do
7
7
  version,gemset = rvm_god_string.split("@")
8
8
  sudo "rvm-shell '#{version}' -c 'rvm gemset create #{gemset}'"
9
9
  sudo "rvm-shell '#{rvm_god_string}' -c 'gem install god --no-ri --no-rdoc'"
10
+ sudo "rvm-shell '#{rvm_god_string}' -c 'gem install activeresource -v 3.0.6 --no-ri --no-rdoc'"
11
+ sudo "rvm-shell '#{rvm_god_string}' -c 'gem install tlsmail --no-ri --no-rdoc'"
10
12
  end
11
13
 
12
14
  task :start do
13
- sudo "god --log-level info"
15
+ if god_config_path
16
+ sudo "rvm-shell '#{rvm_god_string}' -c 'god -c #{File.join(god_config_path)} --log-level info'"
17
+ else
18
+ sudo "rvm-shell '#{rvm_god_string}' -c 'god --log-level info'"
19
+ end
14
20
  end
15
21
 
16
22
  task :quit do
data/lib/gap/tasks.rb CHANGED
@@ -1,5 +1,11 @@
1
1
  module Gap
2
2
  module Tasks
3
+
4
+ def init_val
5
+ set :rvm_ruby_string, nil
6
+ set :god_config_path, nil
7
+ end
8
+
3
9
  def define_bulk_tasks value
4
10
  return unless value
5
11
  #gap dev start,restart,god
data/lib/gap.rb CHANGED
@@ -2,5 +2,5 @@ $:.unshift(File.dirname(__FILE__)) unless
2
2
  $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
3
3
 
4
4
  module Gap
5
- VERSION = '0.0.14'
5
+ VERSION = '0.0.15'
6
6
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gap
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.14
5
+ version: 0.0.15
6
6
  platform: ruby
7
7
  authors:
8
8
  - Takashi Yaguchi