Class: Staticz::ManifestCommand

Inherits:
Object
  • Object
show all
Includes:
TTY::Option
Defined in:
lib/commands/manifest_command.rb

Instance Method Summary collapse

Instance Method Details

#runObject



23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/commands/manifest_command.rb', line 23

def run
  if params[:help]
    print help
  else
    Staticz::Settings.development!

    load "#{Dir.pwd}/manifest.rb"
    Staticz::Modules::LibLoader.load_files
    Staticz::Manifest.instance.create_link_functions

    Staticz::Manifest.instance.print
  end
end