Class: Embryo::DefaultView

Inherits:
Object
  • Object
show all
Defined in:
lib/embryo/default_view.rb

Instance Method Summary collapse

Constructor Details

#initialize(filesystem) ⇒ DefaultView

Returns a new instance of DefaultView.



3
4
5
# File 'lib/embryo/default_view.rb', line 3

def initialize(filesystem)
  @filesystem = filesystem
end

Instance Method Details

#installObject



7
8
9
10
11
12
# File 'lib/embryo/default_view.rb', line 7

def install
  @filesystem.write "config/routes.rb", routes_data
  @filesystem.write "app/controllers/dashboard_controller.rb", controller_data
  @filesystem.write "spec/controllers/dashboard_controller_spec.rb", controller_spec_data
  @filesystem.write "spec/features/dashboard_spec.rb", feature_spec_data
end