Skip to content

Commit

Permalink
edits to init and files
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonycorletti committed Nov 6, 2014
1 parent 87e335d commit 921a024
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 19 deletions.
2 changes: 0 additions & 2 deletions Gemfile
@@ -1,4 +1,2 @@
source 'https://rubygems.org'
# gem 'progressbar', '0.21.0'
# gem 'highline'
gemspec
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
![ferry](doc/ferry_readme_icon.png)
![ferry](doc/ferry_readme_icon_2.png)

## What is Ferry?
Ferry is a data migration and data manipulation tool that seeks to quickly and easily reduce overhead when dealing with big data problems.
Expand Down
2 changes: 1 addition & 1 deletion doc/ferry_init_file.rb → doc/ferry_init_file_content.rb
@@ -1,5 +1,5 @@
# this is your ferry init file
# in here you can write rake tasks
# in this file you can write rake tasks that are more
# and other more personalized code for dealing with data migrations and manipulations

# for example ...
Expand Down
Binary file added doc/ferry_readme_icon_2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions ferry.gemspec
Expand Up @@ -27,9 +27,7 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "sqlite3", "~> 1.3.10"
spec.add_development_dependency "mysql2", "~> 0.3.16"
spec.add_development_dependency "factory_girl", "~> 4.5.0"
# spec.add_development_dependency "progressbar", "~> 0.21.0"
# spec.add_development_dependency "highline", "~> 1.6.21"

spec.add_development_dependency "rsync", "~> 1.0.9"
spec.add_runtime_dependency "progressbar", "~> 0.21.0"
spec.add_runtime_dependency "highline", "~> 1.6.21"
end
3 changes: 2 additions & 1 deletion lib/ferry.rb
Expand Up @@ -10,7 +10,8 @@
require 'progressbar'
require 'optparse'
require 'pp'
require 'rsync'
require 'yaml'

module Ferry
end
end
13 changes: 2 additions & 11 deletions lib/ferry/utilities.rb
@@ -1,5 +1,3 @@
# require 'doc/ferry_init_file'

module Ferry
class Utilities
def db_connect(environment)
Expand Down Expand Up @@ -28,15 +26,8 @@ def continue?(prompt = "Are you sure", default = false)
end

def init
File.open("config/ferry.rb", 'w') {|f| f.write("
# this is your ferry init file
# in here you can write rake tasks
# and other more personalized code for dealing with data migrations and manipulations
# for example ...
# examples here"
)}
contents = File.cat("doc/ferry_init_file_content.rb", "w")
File.open("./lib/tasks/ferry.rake", 'w') {|f| f.write(contents)}
end
end
end

0 comments on commit 921a024

Please sign in to comment.