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
1 parent
f7b4453
commit b7803ec
Showing
6 changed files
with
49 additions
and
4 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
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,7 +1,19 @@ | ||
require 'active_support' | ||
require 'active_support/all' | ||
|
||
module Wtf | ||
extend ActiveSupport::Autoload | ||
autoload :Wtf | ||
autoload :Dsl | ||
|
||
module Dsl | ||
extend ActiveSupport::Autoload | ||
module Scm | ||
extend ActiveSupport::Autoload | ||
autoload :Git | ||
end | ||
module Tracker | ||
extend ActiveSupport::Autoload | ||
autoload :PivotalTracker | ||
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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
module Wtf | ||
class Dsl | ||
module Dsl | ||
attr_accessor :_scm, :_tracker | ||
|
||
def scm preferred_scm, args = {} | ||
_scm = Scm::const_get(preferred_scm.to_s.classify).new(*args) | ||
end | ||
|
||
def tracker preferred_tracker, args = {} | ||
_tracker = Tracker::const_get(preferred_tracker.to_s.classify).new(*args) | ||
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,11 @@ | ||
module Wtf | ||
module Dsl | ||
module Scm | ||
class Git | ||
def initialize args = {} | ||
puts "Initializing git" | ||
end | ||
end | ||
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,10 @@ | ||
module Wtf | ||
module Dsl | ||
module Tracker | ||
class PivotalTracker | ||
def initialize args = {} | ||
end | ||
end | ||
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