daddy 0.7.4 → 0.7.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ecbbb75b02de583ccd016932676a1fa2dda83254bc5b6545134aea96e92db2e
4
- data.tar.gz: 0ff829e7c3c0b8e2ad9e1646c8cd2d6f37b7bb0ab3a8fd9accb1e37a1b5cd809
3
+ metadata.gz: b23306f80a8ad93fb7087ab3c052fcbd708b75e1c3dba7aefaa27e9f25c5d568
4
+ data.tar.gz: 4c5130a5c5fcd7abdfa74d2351580f0cb1b56dc73b2856158df75cd455f75f6a
5
5
  SHA512:
6
- metadata.gz: 49fd08bd6962c097362cf9cb2d86e1e76517f340dda02571819cef28cb12828dc7f381db2aee0e8d64139d9cce20b615362ac66b3959b1ab1c89bc06dfaf8944
7
- data.tar.gz: f2b1a4338da9ddbb00c3bedd9f4a0c5b5f2df9b962cd0610dac571e05fb659a0a57b29045cc8cb84e6807110e5d75e21bd5f11308fc59123553dc0b16d73f228
6
+ metadata.gz: ef109bee3ac274754867330392cd3dc03713fdad7a9c92b2a80bb9fe7a3f25ab05b68b07fc71166b0fe6a1449b3ce2912cb2346b154be5ad8e67a2ecae9882e2
7
+ data.tar.gz: 1d6871454ed56b29ec1c281baeb5aa508b644f5102f9dd74942d7c06fea4c0bd9e9d8addf4007366454d7aa2c7d4891361f77d7a3fa3e27f0d553b88e2e7ea2b
@@ -7,8 +7,6 @@ directory '/opt/tensorflow' do
7
7
  mode '755'
8
8
  end
9
9
 
10
- include_recipe '../python/install'
11
-
12
10
  {
13
11
  dev: '0.4.0',
14
12
  numpy: '1.13.3',
data/lib/daddy.rb CHANGED
@@ -5,7 +5,17 @@ require 'sql_builder'
5
5
  module Daddy
6
6
 
7
7
  def self.config
8
- @_config ||= Daddy::Utils::Config.new(File.join('config', 'daddy.yml'))
8
+ if @_config.nil?
9
+ daddy_yml = File.join('config', 'daddy.yml')
10
+ puts daddy_yml
11
+ if File.exist?(daddy_yml)
12
+ @_config = Daddy::Utils::Config.new(daddy_yml)
13
+ else
14
+ @_config = Daddy::Utils::Config.new
15
+ end
16
+ end
17
+
18
+ @_config
9
19
  end
10
20
 
11
21
  end
@@ -13,7 +23,4 @@ end
13
23
  if defined?(Rails)
14
24
  require 'daddy/rails/engine'
15
25
  require 'daddy/rails/railtie'
16
- else
17
- require 'closer/tasks'
18
- require 'daddy/tasks'
19
26
  end
@@ -4,7 +4,17 @@ require 'daddy/utils/config'
4
4
  module Daddy
5
5
 
6
6
  def self.config
7
- @_config ||= Daddy::Utils::Config.new(YAML.load_file('config/daddy.yml'))
7
+ if @_config.nil?
8
+ daddy_yml = File.join('config', 'daddy.yml')
9
+ if File.exist?(daddy_yml)
10
+ parsed = ERB.new(File.read(daddy_yml), 0, '-').result
11
+ @_config = Daddy::Utils::Config.new(YAML.load(parsed))
12
+ else
13
+ @_config = Daddy::Utils::Config.new
14
+ end
15
+ end
16
+
17
+ @_config
8
18
  end
9
19
 
10
20
  end
data/lib/daddy/tasks.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'closer/tasks' if defined?(Closer)
2
+
1
3
  Dir[File.join(File.dirname(File.dirname(__FILE__)), 'tasks', '*.rake')].each do |f|
2
4
  load f
3
5
  end
data/lib/daddy/version.rb CHANGED
@@ -2,12 +2,6 @@ module Daddy
2
2
  VERSION = [
3
3
  VERSION_MAJOR = '0',
4
4
  VERSION_MINOR = '7',
5
- VERSION_REVISION = '4'
6
- ].join('.')
7
-
8
- PYTHON_VERSION = [
9
- PYTHON_VERSION_MAJOR = '3',
10
- PYTHON_VERSION_MINOR = '6',
11
- PYTHON_VERSION_REVISION = '3'
5
+ VERSION_REVISION = '5'
12
6
  ].join('.')
13
7
  end
data/lib/tasks/dad.rake CHANGED
@@ -23,7 +23,7 @@ namespace :dad do
23
23
  desc "ロール #{role} のセットアップを行います。"
24
24
  task role => :environment do
25
25
  role_file = "config/itamae/roles/#{role}.rb"
26
- fail unless system("bundle exec itamae local --ohai #{role_file}")
26
+ fail unless system("bundle exec itamae local --ohai --log-level=#{ENV['DEBUG'] ? 'debug' : 'info'} #{role_file}")
27
27
  end
28
28
  end
29
29
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daddy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-19 00:00:00.000000000 Z
11
+ date: 2018-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashie
@@ -306,8 +306,6 @@ files:
306
306
  - itamae/cookbooks/nginx/config/templates/unicorn.conf.erb
307
307
  - itamae/cookbooks/obs_studio/install.rb
308
308
  - itamae/cookbooks/phantomjs/install.rb
309
- - itamae/cookbooks/python/Python-3.6.3_sha256sum.txt
310
- - itamae/cookbooks/python/install.rb
311
309
  - itamae/cookbooks/sbt/install.rb
312
310
  - itamae/cookbooks/tensorflow/install.rb
313
311
  - itamae/cookbooks/trac/install.rb
@@ -1 +0,0 @@
1
- cda7d967c9a4bfa52337cdf551bcc5cff026b6ac50a8834e568ce4a794ca81da Python-3.6.3.tar.xz
@@ -1,23 +0,0 @@
1
- directory 'tmp'
2
-
3
- execute "download python-#{Daddy::PYTHON_VERSION}" do
4
- cwd 'tmp'
5
- command <<-EOF
6
- curl -O https://www.python.org/ftp/python/#{Daddy::PYTHON_VERSION}/Python-#{Daddy::PYTHON_VERSION}.tar.xz
7
- EOF
8
- not_if "sha256sum -c #{::File.join(::File.dirname(__FILE__), "Python-#{Daddy::PYTHON_VERSION}_sha256sum.txt")}"
9
- end
10
-
11
- execute "install python-#{Daddy::PYTHON_VERSION}" do
12
- cwd 'tmp'
13
- command <<-EOF
14
- rm -Rf Python-#{Daddy::PYTHON_VERSION}/
15
- tar Jxf Python-#{Daddy::PYTHON_VERSION}.tar.xz
16
- pushd Python-#{Daddy::PYTHON_VERSION}
17
- ./configure --enable-optimizations
18
- make
19
- sudo make install
20
- popd
21
- EOF
22
- not_if "which python3 && python3 -V | grep 'Python #{Daddy::PYTHON_VERSION}'"
23
- end