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.3.0"

Instance Method Summary collapse

Instance Method Details

#hooksObject



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

#register_commands(cli) ⇒ Object



6
7
8
# File 'lib/mimas/plugins/bridgetown.rb', line 6

def register_commands(cli)
  cli.register "init", Commands::Init
end

#templates_dirObject



20
21
22
# File 'lib/mimas/plugins/bridgetown.rb', line 20

def templates_dir
  Pathname.new(__dir__).join("templates")
end