Class: HeyDan::Cli

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

Instance Method Summary collapse

Instance Method Details

#buildObject



50
51
52
53
54
# File 'lib/heydan/cli.rb', line 50

def build()
  HeyDan::helper_text('build')
  HeyDan.options = options
  HeyDan::OpenCivicIdentifiers.build
end

#import(number = 100) ⇒ Object



58
59
60
61
62
# File 'lib/heydan/cli.rb', line 58

def import(number=100)
  HeyDan::helper_text('import')
  options[:parallel] ? HeyDan::Import.process_in_parallel(number) : HeyDan::Import.process(number)
  
end

#serverObject



68
69
70
71
# File 'lib/heydan/cli.rb', line 68

def server()
  puts "Serving up some HeyDan Realness"
  HeyDan::Server.run!
end

#setup(dir = nil) ⇒ Object



44
45
46
47
# File 'lib/heydan/cli.rb', line 44

def setup(dir=nil)
  HeyDan::helper_text('setup')
  HeyDan::Base.setup(dir)
end

#uploadObject



74
75
76
77
# File 'lib/heydan/cli.rb', line 74

def upload()
  puts "Serving up some HeyDan Realness"
  HeyDan::Cdn.upload
end