dply 0.2.4 → 0.2.5

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: a62731f9b97dd1e39aa3ecbc0462fdfb2896c606
4
- data.tar.gz: 29f29b503deaa08c163c03d06e78ded0bf379e11
3
+ metadata.gz: a27626c1c463fe0d22f1c04e6a6b1e99206bed74
4
+ data.tar.gz: d50a1657f9e499c1569bd10b8844bc6e6a0a847e
5
5
  SHA512:
6
- metadata.gz: af99d1e9832912032f753924ba390a1c82e16999b99d25456581eb910e630b15d325006c524538839455e584e81942243ba45aa3dc0a3ef2b02ecb8e11c0e658
7
- data.tar.gz: 0c3028c8e066bab4777a4695eb0e034db9c2de17c7250bb8431f762a01fb63c2f8a611b30626f41d610eec47a45afbf7c0616de84c3a721677a8f51f45af2b9c
6
+ metadata.gz: a5307fc6b0bbc8c62c6b4ad9cc58c80efc4bc6f6c2acfac941c47c00c03b46e3873bfd1e3e8c5ce6f1024d3edb5a93cb5eab16b7981b48ae65765d6d81016e7e
7
+ data.tar.gz: a9669bd763ca9a4efc2af3f48f73df7c8b475020a2197e78e8d01f73ee74a76bc17e94d1489024ae104f174a2d4a0838125f3561ecc9182640aeed75a6647906
@@ -4,12 +4,9 @@ module Dply
4
4
 
5
5
  include Helper
6
6
 
7
- def install_deployment
8
- install(without: ["test", "development"])
9
- end
10
-
11
- def install_test
12
- install(without: ["development"])
7
+ def install
8
+ return if check
9
+ cmd "bundle install -j5 --deployment"
13
10
  end
14
11
 
15
12
  def rake(task, **args)
@@ -21,7 +18,6 @@ module Dply
21
18
  end
22
19
 
23
20
  def clean
24
- bundle_without(without: ["development"])
25
21
  cmd "bundle clean"
26
22
  end
27
23
 
@@ -31,18 +27,6 @@ module Dply
31
27
  system "bundle check > /dev/null"
32
28
  end
33
29
 
34
- def install(without:[])
35
- #persists BUNDLE_WITHOUT config
36
- bundle_without(without: without)
37
- return if check
38
- cmd "bundle install -j5 --deployment"
39
- end
40
-
41
- def bundle_without(without: [])
42
- value = without.join(":")
43
- cmd "bundle config --local without #{value}", return_output: true
44
- end
45
-
46
30
  def env
47
31
  @env ||= begin
48
32
  env = {}
@@ -1,4 +1,3 @@
1
- require 'dply/pkgs_config'
2
1
  require 'dply/deplist'
3
2
  require 'dply/helper'
4
3
 
@@ -29,6 +29,7 @@ module Dply
29
29
  def read_config
30
30
  @read ||= begin
31
31
  config = load_yml
32
+ error "data from pkgs.yml not a hash" if not config.is_a? Hash
32
33
  @runtime = config["pkgs"] || []
33
34
  @build = config["build_pkgs"] || []
34
35
  @all = @runtime + @build
@@ -23,7 +23,7 @@ module Dply
23
23
  def whatprovides(lib)
24
24
  lib = "#{lib}()(64bit)"
25
25
  command = %(rpm --queryformat "%{NAME} " -q --whatprovides "#{lib}")
26
- output = cmd command, return_output: true, shell: true
26
+ output = cmd command, return_output: true, shell: true, display: false
27
27
  list = output.strip.split.select {|pkg| not filtered? pkg }
28
28
  end
29
29
 
@@ -11,22 +11,22 @@ module Dply
11
11
  include Helper
12
12
 
13
13
  def deploy(target)
14
- bundle.install_deployment
14
+ bundle.install
15
15
  rake "#{target}:deploy"
16
16
  end
17
17
 
18
18
  def reload(target)
19
- bundle.install_deployment
19
+ bundle.install
20
20
  rake "#{target}:reload"
21
21
  end
22
22
 
23
23
  def task(task)
24
- bundle.install_deployment
24
+ bundle.install
25
25
  rake task
26
26
  end
27
27
 
28
28
  def build(task)
29
- bundle.install_deployment
29
+ bundle.install
30
30
  bundle.clean
31
31
  rake task
32
32
  end
@@ -0,0 +1,8 @@
1
+ archive.rb:
2
+ - git metadata(make a git repo out of code before making a tar)
3
+ -
4
+
5
+ refactor
6
+ - deplist
7
+ - config_struct(remove jenkins, dir_map)
8
+ - pkgs_config(all_pkgs, build_pkgs, pkgs)
@@ -1,3 +1,3 @@
1
1
  module Dply
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dply
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neeraj
@@ -133,6 +133,7 @@ files:
133
133
  - lib/dply/templates/build.erb
134
134
  - lib/dply/templates/deploy.erb
135
135
  - lib/dply/templates/pkgs.erb
136
+ - lib/dply/todo
136
137
  - lib/dply/version.rb
137
138
  - lib/dply/yum.rb
138
139
  - lib/dplyr/cli.rb