Class: Stamina::Gui::App

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/stamina-gui/stamina/gui/app.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

._(path) ⇒ Object

file helpers



19
20
21
# File 'lib/stamina-gui/stamina/gui/app.rb', line 19

def self._(path)
  File.expand_path(path, File.dirname(__FILE__))
end

Instance Method Details

#_(path) ⇒ Object



22
# File 'lib/stamina-gui/stamina/gui/app.rb', line 22

def _(path); self.class._(path); end

#go_for(tempdir, src) ⇒ Object

business



11
12
13
14
15
# File 'lib/stamina-gui/stamina/gui/app.rb', line 11

def go_for(tempdir, src)
  source = File.join(tempdir, "source.rb")
  File.open(source, "w"){|io| io << src}
  Stamina::Command::Run.run(["--all", "--gif", source])
end