Class: Metaverse::Repo

Inherits:
Object
  • Object
show all
Includes:
Git
Defined in:
lib/metaverse/repo.rb

Instance Method Summary collapse

Methods included from Git

#branch, #checkout, #countDiffBranches, #currentBranch, #dirty?, #fetch, #load, #name, #pull, #reset, #status, #tag

Constructor Details

#initialize(path) ⇒ Repo

Returns a new instance of Repo.



7
8
9
# File 'lib/metaverse/repo.rb', line 7

def initialize path
  load path
end

Instance Method Details

#deploy(feature) ⇒ Object



11
12
13
14
15
# File 'lib/metaverse/repo.rb', line 11

def deploy feature
  Dir.chdir(@path) do
    puts `FEATURE_DOMAIN=#{feature} gulp deploy:testing`
  end
end