Module: Mimas::Plugins::Bridgetown
- Extended by:
- Bridgetown
- Included in:
- Bridgetown
- Defined in:
- lib/mimas/plugins/bridgetown.rb,
lib/mimas/plugins/bridgetown/version.rb,
lib/mimas/plugins/bridgetown/commands/init.rb
Defined Under Namespace
Modules: Commands
Constant Summary collapse
- VERSION =
"0.2.2"
Instance Method Summary collapse
Instance Method Details
#commands ⇒ Object
6 7 8 |
# File 'lib/mimas/plugins/bridgetown.rb', line 6 def commands { "init" => Commands::Init } end |
#hooks ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/mimas/plugins/bridgetown.rb', line 10 def hooks hooks = Mimas::Hooks.new hooks.before_push do `BRIDGETOWN_ENV=production bin/bt deploy` end hooks end |
#templates_dir ⇒ Object
20 21 22 |
# File 'lib/mimas/plugins/bridgetown.rb', line 20 def templates_dir Pathname.new(__dir__).join("bridgetown", "templates") end |