Issues (11)

files/default/lib/action/account/create.rb (1 issue)

1
# frozen_string_literal: true
2
3
require_relative '../../action'
4
5
module AMA
6
  module Chef
7
    module User
8 View Code Duplication
      class Action
0 ignored issues
show
This code seems to be duplicated in your project.
Loading history...
9
        module Account
10
          class Create < Action
11
            attr_accessor :account
12
13
            # @param [AMA::Chef::User::Model::Account] account
14
            def initialize(account)
15
              @account = account
16
              super()
17
            end
18
19
            def apply(resource_factory)
20
              resource_factory.user @account.id.to_s
21
            end
22
          end
23
        end
24
      end
25
    end
26
  end
27
end
28