Sha256: aa0adba0c818ffc5b7afd1601bab8d7586627854675291a710dbc2ba09762405
Contents?: true
Size: 774 Bytes
Versions: 1
Compression:
Stored size: 774 Bytes
Contents
# Require core library require "middleman-core" # Extension namespace module Middleman module Deploy class Options < Struct.new(:whatisthis, :method, :host, :port, :user, :path, :clean, :remote, :branch); end class << self def options @@options end def registered(app, options_hash={}, &block) options = Options.new(options_hash) yield options if block_given? options.port ||= 22 options.clean ||= false options.remote ||= "origin" options.branch ||= "gh-pages" @@options = options app.send :include, Helpers end alias :included :registered end module Helpers def options ::Middleman::Deploy.options end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
middleman-deploy-0.0.6 | lib/middleman-deploy/extension.rb |