3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/arver/bootstrap.rb', line 3
def run(options)
local = Arver::LocalConfig.instance
local.config_dir = options[:config_dir] unless options[:config_dir].empty?
local.username = options[:user] unless options[:user].empty?
return true if options[:action] == :init
if "#{local.username}".empty?
Arver::Log.error( "No user defined" )
return false
end
config = Arver::Config.instance
config.load
self.load_runtime_config(options)
unless Arver::Config.instance.exists?(local.username)
Arver::Log.error( "No such user #{local.username}" )
return false
end
Arver::GPGKeyManager.check_key_of(local.username)
end
|