Sha256: 90233c6a618eb56d56e2162c91098aa58105b3a12b40b8f5a5b9734a9b5e5147

Contents?: true

Size: 756 Bytes

Versions: 15

Compression:

Stored size: 756 Bytes

Contents

require "commander/import"
require "pave/version"
require "pave/shell"
require "pave/concrete"
require "pave/database"
require "pave/files"
require "pave/virtual_host"
require "pave/remote"
require "pave/theme"
require "pave/reload"

module Pave
  def update
    say "Updating pave..."
    `gem update pave`
    ($? == 0) ? (say "Updated") : (say "Update failed. Run `gem update pave` manually.")
    say `pave --version`
  end
  module_function :update

  def clean
    say "Cleaning up cached files..."
    `rm -rf ~/.pave`
    ($? == 0) ? (say "Done") : (say "Failed")
  end
  module_function :clean

  def template_folder
    script = File.join(File.expand_path("../", File.dirname(__FILE__)), "templates")
  end
  module_function :template_folder
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
pave-0.16.0 lib/pave.rb
pave-0.15.0 lib/pave.rb
pave-0.14.2 lib/pave.rb
pave-0.14.1 lib/pave.rb
pave-0.14.0 lib/pave.rb
pave-0.13.0 lib/pave.rb
pave-0.12.0 lib/pave.rb
pave-0.11.2 lib/pave.rb
pave-0.11.1 lib/pave.rb
pave-0.12.0.rc3 lib/pave.rb
pave-0.12.0.rc2 lib/pave.rb
pave-0.12.0.rc1 lib/pave.rb
pave-0.11.0 lib/pave.rb
pave-0.10.1 lib/pave.rb
pave-0.10.0 lib/pave.rb