software_smithy 1.6.4 → 1.6.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.
- data/lib/smithy/formula.rb +7 -5
- data/lib/smithy/formula_command.rb +1 -0
- data/lib/smithy_version.rb +1 -1
- data/smithy.rdoc +1 -1
- metadata +4 -4
data/lib/smithy/formula.rb
CHANGED
@@ -20,7 +20,11 @@ module Smithy
|
|
20
20
|
# guess name and build_name
|
21
21
|
@name = self.formula_name
|
22
22
|
@build_name = operating_system
|
23
|
-
|
23
|
+
end
|
24
|
+
|
25
|
+
if ENV["MODULESHOME"]
|
26
|
+
@modulecmd = "modulecmd sh"
|
27
|
+
@modulecmd = "#{ENV["MODULESHOME"]}/bin/modulecmd sh" if File.exists?("#{ENV["MODULESHOME"]}/bin/modulecmd")
|
24
28
|
end
|
25
29
|
end
|
26
30
|
|
@@ -34,8 +38,6 @@ module Smithy
|
|
34
38
|
|
35
39
|
if ENV["MODULESHOME"]
|
36
40
|
@module_commands = @modules = nil # re-evaluates the blocks
|
37
|
-
@modulecmd = "modulecmd sh"
|
38
|
-
@modulecmd = "#{ENV["MODULESHOME"]}/bin/modulecmd sh" if File.exists?("#{ENV["MODULESHOME"]}/bin/modulecmd")
|
39
41
|
if modules.present?
|
40
42
|
@module_setup << `#{@module_setup} #{@modulecmd} purge 2>/dev/null` << " "
|
41
43
|
raise "modules must return a list of strings" unless modules.is_a? Array
|
@@ -54,7 +56,6 @@ module Smithy
|
|
54
56
|
@version = p.version
|
55
57
|
@build_name = p.build_name
|
56
58
|
@prefix = p.prefix
|
57
|
-
initialize_modules
|
58
59
|
end
|
59
60
|
|
60
61
|
# DSL Methods
|
@@ -99,7 +100,7 @@ module Smithy
|
|
99
100
|
end
|
100
101
|
|
101
102
|
def run_install
|
102
|
-
|
103
|
+
initialize_modules
|
103
104
|
install
|
104
105
|
notice_success "SUCCESS #{@prefix}"
|
105
106
|
return true
|
@@ -175,6 +176,7 @@ module Smithy
|
|
175
176
|
end
|
176
177
|
|
177
178
|
def check_dependencies
|
179
|
+
return true unless depends_on
|
178
180
|
@depends_on = [depends_on] if depends_on.is_a? String
|
179
181
|
missing_packages = []
|
180
182
|
notice "Searching for dependencies"
|
data/lib/smithy_version.rb
CHANGED
data/smithy.rdoc
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: software_smithy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-07-
|
12
|
+
date: 2014-07-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: awesome_print
|
@@ -321,7 +321,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
321
321
|
version: '0'
|
322
322
|
segments:
|
323
323
|
- 0
|
324
|
-
hash: -
|
324
|
+
hash: -348248461402119234
|
325
325
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
326
326
|
none: false
|
327
327
|
requirements:
|
@@ -330,7 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
330
330
|
version: '0'
|
331
331
|
segments:
|
332
332
|
- 0
|
333
|
-
hash: -
|
333
|
+
hash: -348248461402119234
|
334
334
|
requirements: []
|
335
335
|
rubyforge_project:
|
336
336
|
rubygems_version: 1.8.23.2
|