Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
laurilehmijoki committed Jun 12, 2014
1 parent b71d3f4 commit e33f895
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 2 additions & 3 deletions bin/s3_website
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,19 @@ class Cli < Thor
also delete from S3 the files that you no longer have locally.
LONGDESC
def push
call_dir = Dir.pwd
project_root = File.expand_path(File.dirname(__FILE__)+ '/..')
logger = Logger.new(options[:verbose])
# Find the jar
jar_file = resolve_jar project_root, logger
# Then run it
run_s3_website_jar(jar_file, call_dir, logger)
run_s3_website_jar(jar_file, logger)
end

desc 'cfg SUBCOMMAND ...ARGS', 'Operate on the config file'
subcommand 'cfg', Cfg
end

def run_s3_website_jar(jar_file, call_dir, logger)
def run_s3_website_jar(jar_file, logger)
java_installed = resolve_exit_status('which java') or resolve_exit_status('java -version')
unless java_installed
logger.info_msg "Cannot find Java. s3_website push is implemented in Scala, and it needs Java to run."
Expand Down
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

This project uses [Semantic Versioning](http://semver.org).

## 2.1.8

* Remove unused code in the s3_website executable

## 2.1.7

* Remove local db
Expand Down
2 changes: 1 addition & 1 deletion lib/s3_website/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module S3Website
VERSION = '2.1.7'
VERSION = '2.1.8'
end

0 comments on commit e33f895

Please sign in to comment.