Module: RailsAssist::Directory::App::Methods

Included in:
RailsAssist::Directory::App, RailsAssist::Directory::App
Defined in:
lib/rails_assist/directory/app.rb

Instance Method Summary collapse

Instance Method Details

#app_dir(options = {}) ⇒ Object



13
14
15
# File 'lib/rails_assist/directory/app.rb', line 13

def app_dir options={}
  app_dirpath(options).dir
end

#app_directoriesObject



4
5
6
# File 'lib/rails_assist/directory/app.rb', line 4

def app_directories
  RailsAssist::Artifact::app_artifacts.map {|a| a.to_s.pluralize.to_sym}
end

#app_dirpath(options = {}) ⇒ Object



8
9
10
11
# File 'lib/rails_assist/directory/app.rb', line 8

def app_dirpath options={}
  rails_root_dirpath = RailsAssist::Directory::Root.root_dirpath(options)
  [rails_root_dirpath, 'app'].file_join
end