Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | # frozen_string_literal: true |
||
10 | class Remove < Action |
||
11 | attr_accessor :account |
||
12 | |||
13 | # @param [AMA::Chef::User::Model::Account] account |
||
14 | def initialize(account) |
||
15 | @account = account |
||
16 | end |
||
17 | |||
18 | def apply(resource_factory) |
||
19 | resource_factory.user @account.id.to_s do |
||
20 | action :remove |
||
21 | end |
||
22 | end |
||
23 | |||
24 | def to_s |
||
25 | "account[#{account.id}]:remove" |
||
26 | end |
||
27 | end |
||
28 | end |
||
33 |