Class: Cf::FormPreview
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Cf::FormPreview
- Includes:
- Config, Thor::Actions
- Defined in:
- lib/cf/cli/form.rb
Overview
:nodoc: all
Instance Method Summary collapse
Methods included from Config
#config_file, #find_home, #get_api_key, #load_config, #save_config, #set_api_key, #set_target_uri
Instance Method Details
#generate_form_preview ⇒ Object
25 26 27 28 |
# File 'lib/cf/cli/form.rb', line 25 def generate_form_preview line_destination = Dir.pwd template("form_preview.html.erb", "#{line_destination}/station#{station}_preview.html") end |
#launch_preview ⇒ Object
30 31 32 33 |
# File 'lib/cf/cli/form.rb', line 30 def launch_preview line_destination = Dir.pwd system "open #{line_destination}/station#{station}_preview.html" end |