8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# File 'lib/api_map.rb', line 8
def map
{
cookbook_file: {
it: { create_if_missing: IT_CREATE_IF_MISSING },
expect: { create_if_missing: EXPECT_CREATE_IF_MISSING }
},
deploy: {
it: { force_deploy: 'force deploys the %{adjective} %{noun}' }
},
env: {
it: { modify: IT_MODIFY }
},
execute: {
it: { run: 'executes %{adjective}' }
},
file: {
it: {
create_if_missing: IT_CREATE_IF_MISSING,
touch: IT_TOUCH
},
expect: { create_if_missing: EXPECT_CREATE_IF_MISSING }
},
git: {
it: {
default: '%{verb}s the %{adjective} git repository',
checkout: 'checks out the %{adjective} git repository'
}
},
group: {
it: { modify: IT_MODIFY }
},
http_request: {
it: {
default: 'performs a %{verb} HTTP request to %{adjective}'
}
},
ifconfig: {
it: {
default: '%{verb}s the %{adjective} network interface using %{noun}'
}
},
registry_key: {
it: {
create_if_missing: IT_CREATE_IF_MISSING,
delete: '%{verb}s the %{adjective} %{noun} value'
},
expect: { create_if_missing: EXPECT_CREATE_IF_MISSING }
},
remote_directory: {
it: { create_if_missing: IT_CREATE_IF_MISSING },
expect: { create_if_missing: EXPECT_CREATE_IF_MISSING }
},
remote_file: {
it: {
create_if_missing: IT_CREATE_IF_MISSING,
touch: IT_TOUCH
},
expect: { create_if_missing: EXPECT_CREATE_IF_MISSING }
},
subversion: {
it: {
default: '%{verb}s the %{adjective} svn repository',
checkout: 'checks out the %{adjective} svn repository'
}
},
template: {
it: {
create_if_missing: IT_CREATE_IF_MISSING,
touch: IT_TOUCH
},
expect: { create_if_missing: EXPECT_CREATE_IF_MISSING }
}
}
end
|