Sha256: ca01dd49b69b79b00d6c966638143f931118ad2c9882ba690fb59bc4d6473437

Contents?: true

Size: 581 Bytes

Versions: 3

Compression:

Stored size: 581 Bytes

Contents

program :version, Dreamback::VERSION
program :description, 'Automated backup for dreamhost accounts'

default_command :setup

command :setup do |c|
  c.syntax = 'dreamback start [options]'
  c.summary = 'This will guide you through setting up Dreamback'
  c.action do |args, options|
    Dreamback::Initializer.setup
  end
end

command :backup do |c|
  c.syntax = 'dreamback backup'
  c.summary = 'Run a backup process immediately. This command can also be added to a cron job.'
  c.action do |args, options|
    Dreamback::Initializer.setup
    Dreamback::Backup.start
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dreamback-0.0.3 lib/dreamback/base.rb
dreamback-0.0.2 lib/dreamback/base.rb
dreamback-0.0.1 lib/dreamback/base.rb