Permalink
Browse files

simplify Fancy::Package::DependencyInstaller#run

  • Loading branch information...
1 parent 64ea0f4 commit b8bc922ad90e05238acf76f6da35db4829c200dc @bakkdoor committed Nov 14, 2012
Showing with 3 additions and 6 deletions.
  1. +3 −6 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
}

0 comments on commit b8bc922

Please sign in to comment.