class SiteHook::Commands::InitClass

Public Instance Methods

all() click to toggle source
# File lib/site_hook/commands/init_class.rb, line 13
def all
  invoke :create_shrc_dir
  invoke :create_shrc_logs_dir
  invoke :create_config_sample
end
create_config_sample() click to toggle source
# File lib/site_hook/commands/init_class.rb, line 33
def create_config_sample
  TTY::File.create_file(SiteHook::Paths.config, SiteHook::ConfigSections.all_samples)
end
create_shrc_dir() click to toggle source
# File lib/site_hook/commands/init_class.rb, line 21
def create_shrc_dir
  TTY::File.create_dir(SiteHook::Paths.dir)
end
create_shrc_logs_dir() click to toggle source
# File lib/site_hook/commands/init_class.rb, line 27
def create_shrc_logs_dir
  TTY::File.create_dir(SiteHook::Paths.logs)
end