Module: Mdpresent
- Defined in:
- lib/mdpresent.rb,
lib/mdpresent/cli.rb,
lib/mdpresent/scm.rb,
lib/mdpresent/github.rb,
lib/mdpresent/heroku.rb,
lib/mdpresent/command.rb,
lib/mdpresent/version.rb,
lib/mdpresent/home_page_generator.rb
Defined Under Namespace
Classes: CLI, Command, Git, Github, Heroku, HomePageGenerator
Constant Summary collapse
- PLATFORMS =
globals
[ "heroku", "github" ]
- VERSION =
"0.0.1"
Class Method Summary collapse
- .platform ⇒ Object
-
.root ⇒ Object
get the root of gem.
Class Method Details
.platform ⇒ Object
15 16 17 18 |
# File 'lib/mdpresent.rb', line 15 def self.platform return :heroku if Git.heroku_remote_present? return :github if Git.gh_pages_branch_present? end |
.root ⇒ Object
get the root of gem
21 22 23 |
# File 'lib/mdpresent.rb', line 21 def self.root File. '../..', __FILE__ end |