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



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_previewObject



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