Class: GitPunch::Plugin

Inherits:
Thor
  • Object
show all
Includes:
MediaConfig, Thor::Actions
Defined in:
lib/git_punch/plugin.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from MediaConfig

#git_media_config

Class Method Details

.source_rootObject



6
7
8
# File 'lib/git_punch/plugin.rb', line 6

def self.source_root
  GitPunch.template_path
end

Instance Method Details

#initObject



11
12
13
14
15
16
17
18
# File 'lib/git_punch/plugin.rb', line 11

def init
  install_configuration!

  say %{
    We strongly urge you to `gem install guard-live-set && guard init live-set`
    so you can automatically keep your Live set changes in Git.
  } if project.live? && !project.has_guard_installed?
end