Class: Mimas::CLI::Commands::Archive

Inherits:
BaseCommand
  • Object
show all
Defined in:
lib/mimas/commands/archive.rb

Constant Summary

Constants included from Template

Template::BASE_DIRECTORY

Instance Method Summary collapse

Methods inherited from BaseCommand

#initialize

Methods included from Terminal::Printer

#ask, #say

Methods included from SSH

#ssh

Methods included from Template

#copy_file, lookup_paths, #read_file, #template

Constructor Details

This class inherits a constructor from Mimas::CLI::Commands::BaseCommand

Instance Method Details

#call(site: :default) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/mimas/commands/archive.rb', line 9

def call(site: :default)
  site    = Config.current.sites[site.to_sym]

  site.archive

  say "Your site's archive has been created in #{Archiver::DEFAULT_OUTPUT_PATH}"
end