Class: Cf::FormPreview

Inherits:
Thor::Group
  • Object
show all
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_previewObject



27
28
29
30
# File 'lib/cf/cli/form.rb', line 27

def generate_form_preview
  line_destination = Dir.pwd
  template("form_preview.html.erb",   "#{line_destination}/station_#{station}/form_preview.html")
end

#launch_previewObject



32
33
34
35
# File 'lib/cf/cli/form.rb', line 32

def launch_preview
  line_destination = Dir.pwd
  system "open #{line_destination}/station_#{station}/form_preview.html"
end