Class: Noumenon::Cli

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/noumenon/cli.rb

Instance Method Summary collapse

Instance Method Details

#repository(path) ⇒ Object



23
24
25
26
# File 'lib/noumenon/cli.rb', line 23

def repository(path)
  say_status :repository, path
  directory "repository", path
end

#site(path) ⇒ Object



9
10
11
12
13
14
# File 'lib/noumenon/cli.rb', line 9

def site(path)
  say_status :site, path
  directory "site", path
  invoke :theme, [ File.join(path, "theme") ]
  invoke :repository, [ File.join(path, "content") ]
end

#theme(path) ⇒ Object



17
18
19
20
# File 'lib/noumenon/cli.rb', line 17

def theme(path)
  say_status :theme, path
  directory "theme", path
end