Sha256: ae75f2bc136a471f0de4a6956c6d031edf6ebbd083f8cc830a5a2dc4ef03fb96

Contents?: true

Size: 476 Bytes

Versions: 19

Compression:

Stored size: 476 Bytes

Contents

class ForgeCLI::PostHooks
  def self.run!(app)
    new(app).run!
  end

  def initialize(app)
    @app = app
  end

  def run!
    raise NotImplementedError
  end

  private
    def module_path
      raise NotImplementedError, "Set this to return File.dirname(__FILE__) in your subclass"
    end

    def require_addon(addon)
      addon_requirer.require_addon(addon)
    end

    def addon_requirer
      @addon_requirer ||= ForgeCLI::ForgeAddonRequirer.new(@app)
    end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge-cli/post_hooks.rb
forge-cli-0.1.9 lib/forge-cli/post_hooks.rb
forge-cli-0.1.8 lib/forge-cli/post_hooks.rb
forge-cli-0.1.7 lib/forge-cli/post_hooks.rb
forge-cli-0.1.6 lib/forge-cli/post_hooks.rb
forge-cli-0.1.5 lib/forge-cli/post_hooks.rb
forge-cli-0.1.4 lib/forge-cli/post_hooks.rb
forge-cli-0.1.3 lib/forge-cli/post_hooks.rb
forge-cli-0.1.2 lib/forge-cli/post_hooks.rb
forge-cli-0.1.1 lib/forge-cli/post_hooks.rb
forge-cli-0.1.0 lib/forge-cli/post_hooks.rb
forge-cli-0.0.18 lib/forge-cli/post_hooks.rb
forge-cli-0.0.17 lib/forge-cli/post_hooks.rb
forge-cli-0.0.16 lib/forge-cli/post_hooks.rb
forge-cli-0.0.15 lib/forge-cli/post_hooks.rb
forge-cli-0.0.14 lib/forge-cli/post_hooks.rb
forge-cli-0.0.13 lib/forge-cli/post_hooks.rb
forge-cli-0.0.12 lib/forge-cli/post_hooks.rb
forge-cli-0.0.11 lib/forge-cli/post_hooks.rb