dply 0.1.2 → 0.1.4

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: 1a3b35214b00b8c21b46a036c295a8537640a2fd
4
- data.tar.gz: fe97117adb377dd0969e9d67c9fcd3302a91caca
3
+ metadata.gz: e20fabef74c27d99beb4819bdafc550d95fa5df7
4
+ data.tar.gz: a02c1480a1e94b2252b193a29379402c4021419b
5
5
  SHA512:
6
- metadata.gz: 812c7a53fe0c9bd6f5b5bed5dfd8e0c0fea1a3a1cf7553c35de048b5f8f66a11d733010b0c2191b1747da745f646d6618a61fcbe53b16163127b1ef1c92ea995
7
- data.tar.gz: 1d52620fb973432b5f452511f4141a8acb383749b089172fa5bc546d0e3280d5f0c83ce90ae6c1500e09bef69af0df4b3cbc2bd2e98e332fa637edcb9e562719
6
+ metadata.gz: 6cbca3335677bba0568099785f86eccf5bda85bf2fd4cc01c3178ed9c657d21b90fbcd09fbe3bbe729a7855e739a21793774b5f6720d6afc0c82b09b844a05c1
7
+ data.tar.gz: 59fc1e418c98681c436c26319bee41227a982dd3cc01fd0e0389ffd34ac7e1938de7eab3fc88685154dfa3389e426f831493c7d0db39809640734bf1bd3d21ed
@@ -3,16 +3,17 @@ module Dply
3
3
  class ConfigDownloader
4
4
 
5
5
  include Helper
6
- attr_writer :config_skip_download
6
+ attr_writer :skip_download
7
7
 
8
8
  def initialize(config_files , base_url)
9
9
  @config_files = config_files
10
10
  @base_url = base_url
11
+ @skip_download = []
11
12
  end
12
13
 
13
14
  def download_all
14
15
  @config_files.each do |f|
15
- if config_skip_download.include? f
16
+ if skip_download.include? f
16
17
  logger.debug "skipping to download file #{f}"
17
18
  next
18
19
  end
@@ -31,10 +32,5 @@ module Dply
31
32
  end
32
33
  end
33
34
 
34
-
35
- def config_skip_download
36
- @config_skip_download ||= []
37
- end
38
-
39
35
  end
40
36
  end
@@ -14,6 +14,7 @@ module Dply
14
14
  @target = :default
15
15
  @branch = :master
16
16
  @verify_checksum = true
17
+ @shared_dirs = []
17
18
  end
18
19
 
19
20
  def revision
data/lib/dply/deplist.rb CHANGED
@@ -75,6 +75,8 @@ module Dply
75
75
  return [] if not ef.has_section? ".dynamic"
76
76
  ef[".dynamic"].needed_libraries.keys
77
77
  end
78
+ rescue Exception
79
+ return []
78
80
  end
79
81
 
80
82
  def rpm
data/lib/dply/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dply
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.4"
3
3
  end
data/lib/dply/yum.rb CHANGED
@@ -20,6 +20,10 @@ module Dply
20
20
  command << "sudo -n " if @sudo
21
21
  command << "yum install -y #{not_installed_pkgs.join(' ')}"
22
22
  cmd command
23
+ not_installed = query_not_installed
24
+ if not_installed.size != 0
25
+ error "following pkgs not installed: #{not_installed.join(" ")}"
26
+ end
23
27
  end
24
28
 
25
29
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dply
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Neeraj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-03 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby-elf