Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

simplify Fancy::Package::DependencyInstaller#run

  • Loading branch information...
commit b8bc922ad90e05238acf76f6da35db4829c200dc 1 parent 64ea0f4
@bakkdoor authored
Showing with 3 additions and 6 deletions.
  1. +3 −6 lib/package/dependency_installer.fy
View
9 lib/package/dependency_installer.fy
@@ -8,15 +8,12 @@ class Fancy {
return nil
}
- require: packfile
-
- spec_name = packfile split: ".fancypack" . first
- if: (Specification[spec_name]) then: |s| {
- s dependencies each: |dep| {
+ if: (File eval: packfile) then: |spec| {
+ spec dependencies each: |dep| {
"Installing dependency: #{dep name} (#{dep version})" println
Fancy Package install: (dep name) version: (dep version)
}
- s ruby_dependencies each: |dep| {
+ spec ruby_dependencies each: |dep| {
"Installing Ruby dependency: #{dep gem_name} (#{dep version})" println
dep install
}
Please sign in to comment.
Something went wrong with that request. Please try again.