devinstall 0.0.6 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/.idea/devinstall.iml CHANGED
@@ -15,9 +15,9 @@
15
15
  </content>
16
16
  <orderEntry type="inheritedJdk" />
17
17
  <orderEntry type="sourceFolder" forTests="false" />
18
- <orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.4, RVM: ruby-2.0.0-p0) [gem]" level="application" />
19
- <orderEntry type="library" scope="PROVIDED" name="getopt (v1.4.1, RVM: ruby-2.0.0-p0) [gem]" level="application" />
20
- <orderEntry type="library" scope="PROVIDED" name="rake (v10.0.3, RVM: ruby-2.0.0-p0) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.3.0.pre.8, ruby-1.9.3-p392) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="getopt (v1.4.1, ruby-1.9.3-p392) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.0.3, ruby-1.9.3-p392) [gem]" level="application" />
21
21
  </component>
22
22
  </module>
23
23
 
data/.idea/misc.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
- <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-2.0.0-p0" project-jdk-type="RUBY_SDK" />
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="ruby-1.9.3-p392" project-jdk-type="RUBY_SDK" />
4
4
  </project>
5
5
 
@@ -23,11 +23,6 @@ module Settings
23
23
  target.merge! data, &merger
24
24
  end
25
25
 
26
- #def method_missing(name, *args, &block)
27
- # @_settings[name.to_sym] ||
28
- # fail(NoMethodError, "unknown configuration root #{name}", caller)
29
- #end
30
-
31
26
  def base
32
27
  @_settings[:base]
33
28
  end
@@ -1,3 +1,3 @@
1
1
  module Devinstall
2
- VERSION = "0.0.6"
2
+ VERSION = "0.1.0" # first test
3
3
  end
data/lib/devinstall.rb CHANGED
@@ -29,7 +29,7 @@ module Devinstall
29
29
  chg: "#{pname}_debian.changes"}
30
30
  end
31
31
 
32
- def upload! (environment)
32
+ def upload (environment)
33
33
  scp =Settings.base[:scp]
34
34
  repo =Hash.new
35
35
  type =Settings.repos[environment][:type]
@@ -44,7 +44,7 @@ module Devinstall
44
44
  end
45
45
 
46
46
  # @param [Symbol] type
47
- def build! (type)
47
+ def build (type)
48
48
  unless Settings.packages[@package].has_key?(type)
49
49
  puts("Package '#{@package}' cannot be built for the required environment")
50
50
  puts("undefined build configuration for '#{type.to_s}'")
@@ -76,24 +76,24 @@ module Devinstall
76
76
  end
77
77
  end
78
78
 
79
- def install! (environment)
79
+ def install (environment)
80
80
  sudo =Settings.base[:sudo]
81
81
  scp =Settings.base[:scp]
82
- type =Settings.install[environment][:type]
82
+ type =Settings.install[:environment][:type]
83
83
  local_temp =Settings.local[:temp]
84
- build!(type)
84
+ build(type)
85
85
  install=Hash.new
86
86
  [:user, :host, :folder].each do |k|
87
- unless Settings.install[environment].has_key?(k)
87
+ unless Settings.install[:environment].has_key?(k)
88
88
  puts "Undefined key 'install:#{environment.to_s}:#{k.to_s}'"
89
89
  exit!(1)
90
90
  end
91
- install[k]=Settings[environment][k]
91
+ install[k]=Settings.install[environment][k]
92
92
  end
93
93
  case type.to_sym
94
94
  when :deb
95
95
  system("#{scp} #{local_temp}/#{@package_files[type][:deb]} #{install[:user]}@#{install[:host]}/#{install[:folder]}")
96
- system("#{sudo} #{build![:user]}@#{build[:host]} \"dpkg -i #{install[:folder]}/#{@package_files[type][:deb]}")
96
+ system("#{sudo} #{Settings.build[:user]}@#{Settings.build[:host]} \"dpkg -i #{install[:folder]}/#{@package_files[type][:deb]}")
97
97
  else
98
98
  puts "unknown package type '#{type.to_s}'"
99
99
  exit!(1)
metadata CHANGED
@@ -1,55 +1,62 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devinstall
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.1.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Dragos Boca
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-04-14 00:00:00.000000000 Z
12
+ date: 2013-04-16 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: bundler
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
- - - '>='
19
+ - - ! '>='
18
20
  - !ruby/object:Gem::Version
19
21
  version: '0'
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
- - - '>='
27
+ - - ! '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '0'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rake
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
- - - '>='
35
+ - - ! '>='
32
36
  - !ruby/object:Gem::Version
33
37
  version: '0'
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
- - - '>='
43
+ - - ! '>='
39
44
  - !ruby/object:Gem::Version
40
45
  version: '0'
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: getopt
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
- - - '>='
51
+ - - ! '>='
46
52
  - !ruby/object:Gem::Version
47
53
  version: '0'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
- - - '>='
59
+ - - ! '>='
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  description: remote builder and installer
@@ -86,26 +93,27 @@ files:
86
93
  homepage: http://github.com/dboca/devinstall
87
94
  licenses:
88
95
  - MIT
89
- metadata: {}
90
96
  post_install_message:
91
97
  rdoc_options: []
92
98
  require_paths:
93
99
  - lib
94
100
  required_ruby_version: !ruby/object:Gem::Requirement
101
+ none: false
95
102
  requirements:
96
- - - '>='
103
+ - - ! '>='
97
104
  - !ruby/object:Gem::Version
98
105
  version: '0'
99
106
  required_rubygems_version: !ruby/object:Gem::Requirement
107
+ none: false
100
108
  requirements:
101
- - - '>='
109
+ - - ! '>='
102
110
  - !ruby/object:Gem::Version
103
111
  version: '0'
104
112
  requirements: []
105
113
  rubyforge_project:
106
- rubygems_version: 2.0.3
114
+ rubygems_version: 1.8.25
107
115
  signing_key:
108
- specification_version: 4
116
+ specification_version: 3
109
117
  summary: Copy the source files to a build host, build the packages and install builded
110
118
  packages
111
119
  test_files: []
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 21d81d91ce39de101c87585be67fe8aeb67b3b3e
4
- data.tar.gz: b425da5e779873153917ee6d6ed44c836b71d9a2
5
- SHA512:
6
- metadata.gz: a83e7bb521527a4620312080b65dea0c97ce91d804391551f95f986e2c08b456256d6e70b157e2d08903a0bc6250047ec48478235288bd609e26552ef1c94c15
7
- data.tar.gz: 0246b9fc91d49eb5b819859bf9b78a61074decea28e8a9671253e48b455b21f835ddd3a75829a12922f439843096ec952e7a70c6a6fe7d1d3089d7632e210913