Class: WSlaveSage
- Inherits:
-
Object
- Object
- WSlaveSage
- Defined in:
- lib/wslave_sage.rb
Instance Method Summary collapse
-
#initialize(name, version) ⇒ WSlaveSage
constructor
A new instance of WSlaveSage.
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 |