Sha256: 14cbf2eb18baf08df87b22895826af438e36915e320331b0ef8bba2dafa74cce

Contents?: true

Size: 516 Bytes

Versions: 4

Compression:

Stored size: 516 Bytes

Contents

#!/usr/bin/env ruby

# This allows posthaven_theme to run easily from a git checkout without install.
# Hat tip to chriseppstein of Compass fame for the code for this
def fallback_load_path(path)
  retried = false
  begin
    yield
  rescue LoadError
    unless retried
      $: << path
      retried = true
      retry
    end
    raise
  end
end

fallback_load_path(File.join(File.dirname(__FILE__), '..', 'lib')) do
  require 'posthaven_theme'
  require 'posthaven_theme/cli'
end

PosthavenTheme::Cli.start(ARGV)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
posthaven_theme-0.1.3 bin/phtheme
posthaven_theme-0.1.2 bin/phtheme
posthaven_theme-0.1.1 bin/phtheme
posthaven_theme-0.1.0 bin/phtheme