Module: Pakman
- Defined in:
- lib/pakman.rb,
lib/pakman/page.rb,
lib/pakman/utils.rb,
lib/pakman/copier.rb,
lib/pakman/finder.rb,
lib/pakman/cli/ctx.rb,
lib/pakman/fetcher.rb,
lib/pakman/version.rb,
lib/pakman/cli/opts.rb,
lib/pakman/manifest.rb,
lib/pakman/cli/runner.rb,
lib/pakman/cli/helpers.rb,
lib/pakman/erb/template.rb,
lib/pakman/erb/templater.rb,
lib/pakman/liquid/template.rb,
lib/pakman/cli/commands/gen.rb,
lib/pakman/liquid/templater.rb,
lib/pakman/cli/commands/list.rb,
lib/pakman/cli/commands/fetch.rb
Defined Under Namespace
Modules: ManifestHelper Classes: Copier, Ctx, ErbTemplate, Fetch, Fetcher, Finder, Gen, LiquidPageTemplate, LiquidTemplate, LiquidTemplater, List, Manifest, Opts, Page, Runner, Templater
Constant Summary collapse
- VERSION =
'1.0.0'
Class Method Summary collapse
- .banner ⇒ Object
- .main ⇒ Object
-
.pakname_from_file(path) ⇒ Object
downcase and remove .txt (if anywhere in name) e.g.
- .root ⇒ Object
Class Method Details
.banner ⇒ Object
54 55 56 |
# File 'lib/pakman.rb', line 54 def self. "pakman #{VERSION} on Ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]" end |
.pakname_from_file(path) ⇒ Object
downcase and remove .txt (if anywhere in name) e.g. welcome.quick.txt becomes welcome.quick
welcome.txt.quick becomse welcome.quick
s6blank.txt becomes s6blank
11 12 13 |
# File 'lib/pakman/utils.rb', line 11 def self.pakname_from_file( path ) File.basename( path ).downcase.gsub( '.txt', '' ) end |
.root ⇒ Object
58 59 60 |
# File 'lib/pakman.rb', line 58 def self.root "#{File.( File.dirname(File.dirname(__FILE__)) )}" end |