Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ runrdoc
pkg/
.bundle
Gemfile.lock
coverage/*
15 changes: 1 addition & 14 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,2 @@
# A sample Gemfile
source "http://rubygems.org"

gem "net-ssh"
gem "net-scp"
gem "net-ssh-gateway"

group :development do
gem 'hoe'
gem 'newgem'
gem 'ruby-debug'
gem 'mocha'
gem 'rspec', '1.3.1'
gem 'rcov'
end
gemspec
41 changes: 0 additions & 41 deletions Manifest.txt

This file was deleted.

22 changes: 2 additions & 20 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,25 +1,7 @@
require 'rubygems'
gem 'hoe', '>= 2.1.0'
require 'hoe'
require 'fileutils'
require './lib/screwcap'
require 'bundler'
Bundler::GemHelper.install_tasks

Hoe.plugin :newgem
# Hoe.plugin :website
# Hoe.plugin :cucumberfeatures

# Generate all the Rake tasks
# Run 'rake -T' to see list of generated tasks (from gem root directory)
$hoe = Hoe.spec 'screwcap' do
self.version = '0.8.3'
self.developer 'Grant Ammons', 'grant@pipelinedeals.com'
self.rubyforge_name = self.name # TODO this is default value
self.extra_deps = [['net-ssh','>= 2.0.23'],['net-ssh-gateway','>=1.0.1'], ['net-scp','>=1.0.4']]
end

require 'newgem/tasks'
Dir['tasks/**/*.rake'].each { |t| load t }

# TODO - want other tests/tasks run by default? Add them to the list
remove_task :default
task :default => :spec
8 changes: 4 additions & 4 deletions bin/screwcap
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ opts = Trollop::with_standard_exception_handling p do

if opts[:tasks] == true or ARGV.size == 1
recipe_file = ARGV.shift
deployer = TaskManager.new(opts.merge(:recipe_file => recipe_file))
deployer = Screwcap::TaskManager.new(opts.merge(:recipe_file => recipe_file))
$stdout << "\nTasks Available:\n" if deployer.__tasks.size > 0
deployer.__tasks.map {|t| t.__name }.each {|name| $stdout << " #{name}\n" }
$stdout << "\nSequences Available:\n" if deployer.__sequences.size > 0
Expand All @@ -43,7 +43,7 @@ opts = Trollop::with_standard_exception_handling p do

if opts[:dry_run] == true
recipe_file = ARGV.shift
deployer = TaskManager.new(opts.merge(:recipe_file => recipe_file))
deployer = Screwcap::TaskManager.new(opts.merge(:recipe_file => recipe_file))
ARGV.map {|a| a.to_sym }.each do |tname|
task = deployer.__tasks.find {|t| t.__name == tname }
raise(Screwcap::TaskNotFound, "Could not find task named '#{tname}' in the recipe file.") if task.nil?
Expand All @@ -57,7 +57,7 @@ opts = Trollop::with_standard_exception_handling p do
end

if opts[:setup_rails] == true
TaskManager.new(:recipe_file => File.expand_path(File.dirname(__FILE__) + "/../recipes/setup_rails.rb")).run! :setup_rails
Screwcap::TaskManager.new(:recipe_file => File.expand_path(File.dirname(__FILE__) + "/../recipes/setup_rails.rb")).run! :setup_rails
$stdout << "\nYour rails app now has a sample recipe, ready for the editing, in config/screwcap/recipe.rb\n"
$stdout << "Your recipes will be automatically available in rake. Screwcap uses the :remote namespace.\n"
$stdout << "To see what recipes you can run, type 'rake -T remote'.\n"
Expand All @@ -67,7 +67,7 @@ opts = Trollop::with_standard_exception_handling p do

recipe_file = ARGV.shift
begin
TaskManager.new(opts.merge(:recipe_file => recipe_file)).run! ARGV.map {|a| a.to_sym }
Screwcap::TaskManager.new(opts.merge(:recipe_file => recipe_file)).run! ARGV.map {|a| a.to_sym }
rescue Exception => e
raise e if opts[:debug] == true
$stderr << e
Expand Down
Loading