Change Agent.user to Agent.username and make it and hostname rw.

This commit is contained in:
Daniel Nichter
2013-04-10 16:57:06 -06:00
parent 9fbfa89c87
commit 7bfc694be4
2 changed files with 17 additions and 15 deletions

View File

@@ -28,8 +28,15 @@ has 'uuid' => (
required => 0,
);
has 'username' => (
is => 'rw',
isa => 'Str',
required => 1,
default => $ENV{USER} || $ENV{LOGNAME},
);
has 'hostname' => (
is => 'ro',
is => 'rw',
isa => 'Str',
required => 1,
);
@@ -40,12 +47,6 @@ has 'alias' => (
required => 0,
);
has 'user' => (
is => 'ro',
isa => 'Str',
required => 1,
);
has 'versions' => (
is => 'ro',
isa => 'Maybe[HashRef]',