Hold a @config in Application
This commit is contained in:
parent
090daf39a0
commit
67beb1dece
@ -1,6 +1,10 @@
|
|||||||
module Svi
|
module Svi
|
||||||
class Application
|
class Application
|
||||||
|
|
||||||
|
def initialize
|
||||||
|
@config = Config.new
|
||||||
|
end
|
||||||
|
|
||||||
def checkout(url)
|
def checkout(url)
|
||||||
checkout_directory = []
|
checkout_directory = []
|
||||||
if url =~ %r{/([^/]+)/trunk$}
|
if url =~ %r{/([^/]+)/trunk$}
|
||||||
@ -53,11 +57,10 @@ module Svi
|
|||||||
end
|
end
|
||||||
|
|
||||||
def status
|
def status
|
||||||
config = Config.new
|
|
||||||
SvnRunner.run_svn("status", []) do |line|
|
SvnRunner.run_svn("status", []) do |line|
|
||||||
if line =~ %r{^([ACDIMRX\?!~ ])[CM ][L ][\+ ][SX ][KOTB ]..(.+)$}
|
if line =~ %r{^([ACDIMRX\?!~ ])[CM ][L ][\+ ][SX ][KOTB ]..(.+)$}
|
||||||
action, path = $1, $2
|
action, path = $1, $2
|
||||||
if action == "?" and Util.is_path_ignored?(path, config)
|
if action == "?" and Util.is_path_ignored?(path, @config)
|
||||||
# Path is ignored
|
# Path is ignored
|
||||||
else
|
else
|
||||||
puts line
|
puts line
|
||||||
|
Loading…
x
Reference in New Issue
Block a user