Class: Gleis::CLI::Storage

Inherits:
Thor
  • Object
show all
Defined in:
lib/gleis/cli/storage.rb

Overview

Storage-related CLI commands

Instance Method Summary collapse

Instance Method Details

#add(type) ⇒ Object



8
9
10
# File 'lib/gleis/cli/storage.rb', line 8

def add(type)
  Gleis::Storage.add(options[:app], type)
end

#attach(dir) ⇒ Object



13
14
15
# File 'lib/gleis/cli/storage.rb', line 13

def attach(dir)
  Gleis::Storage.attach(options[:app], dir)
end

#listObject



18
19
20
# File 'lib/gleis/cli/storage.rb', line 18

def list
  Gleis::Storage.list(options[:app])
end

#sync(dir) ⇒ Object



25
26
27
# File 'lib/gleis/cli/storage.rb', line 25

def sync(dir)
  Gleis::Storage.sync(options[:app], dir, options[:reverse])
end