ya_queen_role_fontana 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ac2476336ec6ba5a9235a2ab41e768122633fbd
4
- data.tar.gz: 23c4082cbf027b542d072818a0512d2a9d279feb
3
+ metadata.gz: c22927469154ac5fb06f896fc8f9fb17defe7991
4
+ data.tar.gz: e840735d34489928af4d465c21ed6ac5f2f23c3c
5
5
  SHA512:
6
- metadata.gz: 6751b22a7078104521317ea430a452eed2b3191edb8e2ad349adc5a650b4f176f3c2b1458d3e87a04d7fb418bb22d57171b260cc762ae64554de7cd48ed4365a
7
- data.tar.gz: 11648f486316a850fd7590404bd9a896b1402c3bdfdf86cdcbbb68473d85d354332b1c100ce7d817166ff800fa67ef344abfd8cf41b58cb12f09b746b4ccb447
6
+ metadata.gz: fa3bdc479bcabb147cf4338c40268e1b4c5dde49baf0151f979eebbea5b4a5de5342644a4019b435e416bd58983c3574148d73b469bef33ad1d0bf8cdb4b341c
7
+ data.tar.gz: 08e33631959ddb037aa368e781a286fe4e5a49751de953a10564bcff27d40eb4c7d7fd24598c032f781316443f5d5f6fe4e9a1460a51eb9dfca0ec0f78b68444
@@ -24,7 +24,7 @@ module YaQueenRoleFontana
24
24
  set :bundle_dir, "./vendor/bundle"
25
25
  set :bundle_without, [:development, :test, :deploy]
26
26
  set :scm, :none
27
- set :repository, File.expand_path("../../", File.dirname(__FILE__))
27
+ set :repository, root_dir
28
28
 
29
29
  set :workspaces, config["workspaces"]
30
30
  set :workspaces_scm , config["workspaces"]["scm"]
@@ -6,6 +6,21 @@ require "ya_queen"
6
6
  module YaQueenRoleFontana
7
7
  class Asset < YaQueen::Base
8
8
 
9
+ class RailsRoot
10
+ def initialize(root)
11
+ @root = root
12
+ end
13
+ def join(path)
14
+ File.join(root, path)
15
+ end
16
+ end
17
+ class Rails
18
+ attr_reader :root
19
+ def initialize(root)
20
+ @root = RailsRoot.new(root)
21
+ end
22
+ end
23
+
9
24
  def implement_each_task(host, options)
10
25
  role :web, host
11
26
  role :asset, host
@@ -18,22 +33,10 @@ module YaQueenRoleFontana
18
33
 
19
34
  # デプロイと言っても通常のdeployの仕組みは使わないので、この辺の設定は不要
20
35
  # set :scm, :none
21
- # set :repository, File.expand_path("../../", File.dirname(__FILE__))
36
+ # set :repository, root_dir
22
37
 
23
38
  unless defined?(::Rails)
24
-
25
- m = Module.new do
26
- def self.root
27
- unless @root
28
- @root = Object.new
29
- def @root.join(path)
30
- File.join(File.expand_path("../../..", __FILE__), path)
31
- end
32
- end
33
- @root
34
- end
35
- end
36
- Object.const_set(:Rails, m)
39
+ Object.const_set(:Rails, YaQueenRoleFontana::Asset::Rails.new(root_dir))
37
40
  end
38
41
 
39
42
  path = Rails.root.join("config/asset_drivers.yml.erb").to_s
@@ -20,7 +20,7 @@ module YaQueenRoleFontana
20
20
  set :gemfile_name, "GOTool"
21
21
  set :bundle_dir, "./vendor/bundle"
22
22
  set :scm, :none
23
- set :repository, File.expand_path("../../", File.dirname(__FILE__))
23
+ set :repository, root_dir
24
24
 
25
25
  set :workspaces, config["workspaces"]
26
26
  set :workspaces_scm , config["workspaces"]["scm"]
@@ -10,7 +10,7 @@ module YaQueenRoleFontana
10
10
  set :user, config['user']
11
11
  set :scm, :git
12
12
  set :scm_verbose, true
13
- set :repository, "git@github.com:tengine/fontana.git"
13
+ # set :repository, config["repository"] # deploy.rbかステージファイルで指定される
14
14
  set :default_branch, "master"
15
15
 
16
16
  set :branch do
@@ -52,7 +52,7 @@ module YaQueenRoleFontana
52
52
  set :user, config['user']
53
53
  set :scm, :git
54
54
  # set :scm_verbose, true
55
- set :repository, "git@github.com:tengine/fontana.git"
55
+ # set :repository, config["repository"] # deploy.rbかステージファイルで指定される
56
56
 
57
57
  set :default_branch, "master"
58
58
  set :branch do
@@ -1,3 +1,3 @@
1
1
  module YaQueenRoleFontana
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_runtime_dependency "ya_queen", "~> 0.0.4"
21
+ spec.add_runtime_dependency "ya_queen", "~> 0.0.5"
22
22
 
23
23
  spec.add_development_dependency "bundler", "~> 1.3"
24
24
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ya_queen_role_fontana
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - akima
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 0.0.4
19
+ version: 0.0.5
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ~>
25
25
  - !ruby/object:Gem::Version
26
- version: 0.0.4
26
+ version: 0.0.5
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement