Skip to content

Commit

Permalink
Finalize for test release.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdotdesign committed Dec 23, 2016
1 parent d7bfc6c commit 72737e0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
elm-stuff
tmp
elm-package.json
pkg
10 changes: 5 additions & 5 deletions bin/elm-install
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ require 'commander/import'
require 'elm_install'

program :name, 'elm-install'
program :version, '0.0.1'
program :version, ElmInstall::VERSION
program :description, 'Install Elm packages from Git repositories.'

command :install do |c|
c.syntax = 'elm-install install [options]'
c.summary = 'Installs Elm packages from the elm-package.json file.'
c.action do |args, options|
ElmInstall.install
c.syntax = 'elm-install install'
c.summary = 'Install Elm packages from the elm-package.json file.'
c.action do
ElmInstall.install
end
end
1 change: 1 addition & 0 deletions lib/elm_install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
require 'json'
require 'git'

require_relative './elm_install/version'
require_relative './elm_install/installer'

# The main module for the gem.
Expand Down
4 changes: 3 additions & 1 deletion lib/elm_install/installer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ def resolve_package(package, version)
# Copies the given package from it's repository to the given path.
def copy_package(package, package_path)
FileUtils.mkdir_p(package_path)
FileUtils.cp_r(File.join(@cache.repository_path(package),'.'), package_path)
FileUtils.cp_r(
File.join(@cache.repository_path(package), '.'), package_path
)
FileUtils.rm_rf(File.join(package_path, '.git'))
end

Expand Down

0 comments on commit 72737e0

Please sign in to comment.