Class: TinyPress::Main

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

Instance Method Summary collapse

Instance Method Details

#establishObject



35
36
37
38
39
40
41
# File 'lib/tinypress.rb', line 35

def establish
    begin
        TinyPress::Site.generate
    rescue Exception => e
        abort_with_message( e.message )
    end
end

#publishObject



44
45
46
47
48
49
50
# File 'lib/tinypress.rb', line 44

def publish
    begin
        TinyPress::Site.publish
    rescue Exception => e
        abort_with_message( e.message )
    end
end