This repository has been archived by the owner on Jun 8, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
72 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
Feature: Loading tasks | ||
In order to use Kumade | ||
As a user | ||
I want to load Rake tasks | ||
|
||
Scenario: Load Rake tasks | ||
Given a directory named "taskloader" | ||
When I cd to "taskloader" | ||
And I write to "Gemfile" with: | ||
""" | ||
source "http://rubygems.org" | ||
gem "rake", "0.8.7" | ||
gem "kumade" | ||
""" | ||
And I add "kumade" from this project as a dependency | ||
And I write to "Rakefile" with: | ||
""" | ||
require 'kumade' | ||
Kumade.load_tasks | ||
""" | ||
And I run `rake -T` | ||
Then the output should contain "deploy" | ||
And the output should contain "deploy:staging" | ||
And the output should contain "deploy:production" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
When /^I add "([^"]*)" from this project as a dependency$/ do |gem_name| | ||
append_to_file('Gemfile', %{\ngem "#{gem_name}", :path => "#{PROJECT_ROOT}"}) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
When /^I initialize a git repo$/ do | ||
When "I successfully run `git init`" | ||
end | ||
|
||
When /^I commit everything in the current directory to git$/ do | ||
steps %{ | ||
When I successfully run `git add .` | ||
And I successfully run `git commit -m blerg` | ||
} | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
require 'aruba/cucumber' | ||
# require 'rspec/mocks' | ||
# | ||
# RSpec::Mocks::setup(Object) | ||
|
||
PROJECT_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..', '..')).freeze |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
module Kumade | ||
# Your code goes here... | ||
require 'kumade/deployer' | ||
|
||
class Kumade | ||
def self.load_tasks | ||
Deployer.new.load_tasks | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class Kumade | ||
class Deployer | ||
def load_tasks | ||
load 'kumade/tasks/deploy.rake' | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
desc "Alias for deploy:staging" | ||
task :deploy do | ||
end | ||
|
||
namespace :deploy do | ||
desc "Deploy to Heroku staging" | ||
task :staging do | ||
end | ||
|
||
desc "Deploy to Heroku production" | ||
task :production do | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module Kumade | ||
class Kumade | ||
VERSION = "0.0.1" | ||
end |