Class: WSlaveSage

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

Instance Method Summary collapse

Constructor Details

#initialize(name, version) ⇒ WSlaveSage

Returns a new instance of WSlaveSage.



2
3
4
5
6
7
8
# File 'lib/wslave_sage.rb', line 2

def initialize(name, version)
  unless File.exist?("./config/.wslave")
    puts "This command must be run in the root of a WSlave setup"
  end

  `cd public/wp-content/themes && composer create-project roots/sage #{name} #{version}`
end