Class: Lanes::Command::GenerateView

Inherits:
NamedCommand
  • Object
show all
Defined in:
lib/lanes/command/generate_view.rb

Instance Attribute Summary

Attributes inherited from NamedCommand

#class_name, #client_dir, #namespace

Instance Method Summary collapse

Methods inherited from NamedCommand

#load_namespace, #set_variables, source_root

Instance Method Details

#create_screenObject



12
13
14
15
16
17
# File 'lib/lanes/command/generate_view.rb', line 12

def create_screen
    template "client/views/View.coffee",   "#{client_dir}/views/#{name.classify}.coffee"
    template "client/views/template.html", "#{client_dir}/views/#{name.dasherize}.html"
    template "spec/client/views/ViewSpec.coffee", \
             "spec/client/views/#{class_name}Spec.coffee"
end